When we include($file) ,caching is done internally,automatically.
How to achieve that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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_storeis 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_defaultconfiguration 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.enabledconfiguration directive.You can not have APC automatically cache a variable.