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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥50 汇编语言除法溢出问题
  • ¥65 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波