Opened 12 years ago
Last modified 6 years ago
#44 new enhancement
exclude path
Reported by: | anonymous | Owned by: | moo |
---|---|---|---|
Priority: | major | Milestone: | 3.3.0 |
Component: | cacher | Version: | 1.0.1 |
Keywords: | Cc: | ||
Application: | PHP Version: | ||
Other Exts: | SAPI: | Irrelevant | |
Probability: | Blocked By: | ||
Blocking: |
Description
Hi!
Can exclude some php script from optimiser?
Like eaccelerator.filter="" in eaccelerator or apc.filters in APC?
Thanks.
Change History (12)
comment:1 Changed 12 years ago by anonymous
comment:2 Changed 12 years ago by judas_iscariote
I think this may be an alternative to considere, however. if and script do not compile or cache properly, please post it here, that needs to be fixed, reliability is one of top priorites.
Im spending a great amount of time testing too :)
comment:3 Changed 12 years ago by anonymous
i use php application, then create very much (more then 100.000) .php files, which used for cache purpose. These files contain very simple php code, which changes every 1-2 hour and don’t need additional acceleration.
comment:4 Changed 12 years ago by moo
- Milestone changed from 1.0.3 to 1.2
comment:5 Changed 12 years ago by moo
- Milestone changed from 1.2 to 1.3.0
comment:6 Changed 12 years ago by moo
- Type changed from defect to enhancement
comment:7 Changed 12 years ago by litkaj
It is worth mentioning that you can exclude entire directories using an .htaccess file. You need to add the following lines:
php_flag xcache.cacher Off
php_flag xcache.optimizer Off
comment:8 Changed 12 years ago by Nneel
xclude path ? means particular folder(s) ?
if its needed to exclude few scripts in a folder but not the folder?
comment:9 Changed 8 years ago by CyberCr33p
- pending set to 0
- SAPI set to Irrelevant
If you run php 5.3.x and want to exclude a folder from xcache you can create a .user.ini and add:
xcache.cacher=0
comment:10 Changed 7 years ago by bestis
6 years and nothing. I cannot see how ignoring folders would help in cases
where the ignored file is in folder you want cache. Also think the file
as a config file that can be generated by the program itself.
Then you want to reduce stat() calls by telling:
xcache.stat = "Off"
But now, once your config file it's cached, it's cached. Program can't
change it's settings without someone clearing the cache. Not nice.
For example in eAccelerator I can have:
eaccelerator.check_mtime = 0
eaccelerator.filter = "!*liteconf.php !*datafiles/config* *.php"
I see that I could put .htaccess to datafiles/config to ignore it, but
can't do anything with ignore of *liteconf.php as that folder has files
needed to cache.
I don't know how many users have similar use cases as mine is, but
before this enhancement is done, we can't use Xcache.
comment:11 Changed 7 years ago by moo
thanks for asking. i'll implement lazy stat first after 2.0.1 is released. see #253
some reasons (like avoiding encoded file) to use filter was eliminated, some later IMHO
comment:12 Changed 6 years ago by moo
- Milestone changed from 3.0.1 to 3.1.0
yeah, but any reason yet? in case if it's not because some script cannot be cached properly