【问题标题】:Resetting any server / php cache重置任何服务器/php缓存
【发布时间】:2011-04-06 17:05:12
【问题描述】:

在我的本地环境中发生了一些非常奇怪的事情 (PHP APC: includepath from the previous request is used instead of current),而在其他环境中使用相同的代码库时不会发生这种情况。所以我怀疑一些缓存问题正在发生

我应该执行哪些步骤,以确保清除所有可能的(服务器端)缓存?

我的代码是一个 php web 应用程序,带有 apache xampp 服务器,windows 7

【问题讨论】:

    标签: php caching


    【解决方案1】:

    你为什么不解决完整路径,反正更快。

    例子:

    define('HOME', dirname(__FILE__) . DIRECTORY_SEPARATOR);
    include(HOME . 'file.php');
    

    【讨论】:

      猜你喜欢
      • 2014-10-03
      • 2016-01-13
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 2015-04-21
      • 2018-10-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多