dsadasd12132
2014-05-08 10:53
浏览 33
已采纳

Drupal 7无法摆脱缓存的网站

I am trying to fix an old drupal module that has errors, but I can not get any of my changes to become visible on the site.

We have test server and "real" server. I copied the module (let's call it module A) files from the "real" server to test. Now the page shows OK as long as I have module A folder in modules folder (in Drupal). Now we get to the unexpected part: as long as module folder A has its info.xml file intact no changes occur, whenever I change the module, control or callback files.

I have noticed that I can rename or comment out all the files I want as long as info.xml is OK and no changes will occur on the test server site. I have tried clearing all caches, running the .php command to invoke emptying all caches and even cleared Drupal cache tables from database.

Now I have no idea what could cause the module to function this way. Only time I can get the module to crash is when I rename the module A folder or rename the .xml file

What could I do to make it retrieve fresh data from the module, callback and control files?

<?xml version="1.0" encoding="UTF-8"?>
<info>
  <companies>
    <company>
      <id>1</id>
      <laskelma>LK</laskelma>
      <dimension>kp,kl,pr,pl</dimension>
    </company>
    <company>
      <id>2</id>
      <laskelma>LK</laskelma>
      <dimension>kp,pr</dimension>
    </company>
    <company>
      <id>3</id>
      <laskelma>YK</laskelma>
      <dimension>kp,pr</dimension>
    </company>
    <company>
      <id>4</id>
      <laskelma>LK</laskelma>
      <dimension>kp,pr</dimension>
    </company>
  </companies>
  <db_schema>
    <db_table>calendar</db_table>
    <db_table>costs</db_table>
    <db_table>cost_sums</db_table>
    <db_table>earning_mem</db_table>
    <db_table>debit_mem</db_table>
  </db_schema>
  <cache_in_use>0</cache_in_use>
  <version_reskontra>201405081237</version_reskontra>
  <version_smt>201405081237</version_smt>
  <version_smt2>201405070647</version_smt2>
</info>
  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dtxs9017 2014-05-08 12:00
    已采纳

    Do you know if you the website has any server caching? For example if you use a module like memcache for Drupal, clearing the drupal cache or clearing the database tables wouldn't make any difference as it's being cached else where on the server. To clear that you would need to use ssh/command line.

    To clear it, connect via SSH and use:

    telnet localhost 11211
    flush_all
    quit
    
    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题