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

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效