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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?