我在运行 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/