note 86293 added to apc.configuration
| From: | danbettles at yahoo dot co dot uk | Date: | Sat, 11 Oct 2008 11:26:01 +0000 |
| Subject: | note 86293 added to apc.configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145268@lists.php.net to get a copy of this message | ||
To automatically cache only PHP class files named "<class name>.class.php", add the
following lines to php.ini.
apc.cache_by_default = "Off"
apc.filters = "+\.class\.php$"
Notes:
- The regexp is case /sensitive/, so if, say, your project contains filenames with mixed case,
you'll need something like "+\.(class|CLASS)\.(php|PHP)$". I've tried
delimiting patterns and using the "i" modifier, but that doesn't seem to work.
- Setting cache_by_default to "On" and applying the positive filter will /not/ work.
If you have more complicated requirements and, like me, you're not familiar with POSIX Extended
Regular Expressions (ERE) inparticular, you may find the following link useful. http://www.regular-expressions.info/refflavors.html
----
Server IP: 87.124.35.190
Probable Submitter: 89.243.66.221
----
Manual Page -- http://www.php.net/manual/en/apc.configuration.php
Edit -- https://master.php.net/note/edit/86293
Del: integrated -- https://master.php.net/note/delete/86293/integrated
Del: useless -- https://master.php.net/note/delete/86293/useless
Del: bad code -- https://master.php.net/note/delete/86293/bad+code
Del: spam -- https://master.php.net/note/delete/86293/spam
Del: non-english -- https://master.php.net/note/delete/86293/non-english
Del: in docs -- https://master.php.net/note/delete/86293/in+docs
Del: other reasons-- https://master.php.net/note/delete/86293
Reject -- https://master.php.net/note/reject/86293
Search -- https://master.php.net/manage/user-notes.php