开发者

How to configure PHP apc so that caching is done automatically?

When we include($file) ,caching is done开发者_Go百科 internally,automatically.

How to achieve that?


Your question is nonsensical when combined with your comment. Caching of bytecode and being able to cache a variable value are two entirely unrelated things.

apc_store is used to store a variable in the shared cache. It has nothing to do with file includes.

APC also caches PHP bytecode. It does so automatically unless the apc.cache_by_default configuration directive is turned off and filters are used as described on the manual page.

You can see if APC is enabled in general by checking the value of the apc.enabled configuration directive.

You can not have APC automatically cache a variable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜