php - APC(备用 PHP 缓存)抛出大量 PHP 通知

标签 php apc e-notices

我在运行 PHP 5.3.6 的 Linux 机器上安装了 APC 3.1.9。

缓存工作正常,但我在我们的错误日志中注意到,APC 会抛出很多 PHP 通知,例如:

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Notice: require_once() [function.require-once]: apc_cache_find [16085954]\n in /path/to/file on line 75, referer: /path/to/referer/file

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Notice: require_once() [function.require-once]: 1. h->opened_path=[/path/to/file] h->filename=[/path/to/file]\n in /path/to/file on line 84, referer: /path/to/referer/file

[Wed Jun 29 01:08:56 2011] [error] [client ip] PHP Notice: Unknown: apc_cache_find [16215361]\n in Unknown on line 0, referer: /path/to/referer/file

-->/path/to/file &/path/to/referer/file 是我插入的替换原来的文件名

知道为什么 APC 会抛出所有这些消息吗?

最佳答案

安装/重新安装 APC 时的确切安装行是这样的:

Enable internal debugging in APC [no] :no

关于php - APC(备用 PHP 缓存)抛出大量 PHP 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6518068/

相关文章:

php - 如何从 CodeIgniter 库中抛出异常

php - 使用 Crontab 运行 PHP 脚本 (Plesk/CentOS6)

c++ - APC 可以中断 WSAWaitForMultipleEvents 吗?

PHP5 性能比较,Windows 和 Linux

php - 记录 PHP 通知错误

php - 如何摆脱 PHP 通知 : Undefined index: HTTPS in X on line 123

带有 POST 数据的 Javascript XMLHttpRequest 上传文件

用于 Windows xampp 的 php-apc

php - 多维数组的E_NOTICE和未定义索引错误

php - 有没有PHP函数可以提取两个字符之间的字符串?