note 86293 added to apc.configuration

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.