I cache top users data in a file named top_users.php, let us call it file cache.
But the APC will cache all the .php files, how to exclude some special .php file from APC
cache?
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.
You can use filters in your apc config file:
This would not cache files under that match that pattern basically any file under that path /usr/share/files/
For you, you could use:
Check this out http://www.php.net/manual/en/apc.configuration.php#ini.apc.filters
This assumes the file is being required or included by absolute path.