Re: APC : how to use filters parameter ?
| From: | Siewn | Date: | Fri, 19 Aug 2005 08:06:38 +0000 |
| Subject: | Re: APC : how to use filters parameter ? | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2764@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf a écrit :
Siewn wrote:So I've tried apc.filters="(.*/cache/.*\.php)|(.*/tmp/.*\.php)" but I still have some files like that cached : /home/pcinpact/www/cache/cache_art.php <http://www.pcinpact.com/admin/apc.php?SCOPE=A&SORT1=H&SORT2=D&COUNT=0&OB=2&SH=96ebb3a7a95922d59ca82a06d34ea3be>Something like apc.filters="*/cache/*.php,*/tmp/*.php" doesn't work. (apache doesn't start) Isn't it the right way ?That's not a valid regular expression. That's a glob pattern which is not the same thing. * is a quantifier that means 0 or more of the entity that came before it. There is nothing before your * there. A proper regex that says match any files with /cache/ or /tmp/ in the path and ending in .php would be: (.*/cache/.*\.php)|(.*/tmp/.*\.php) thanks your answer.