php - Enable server cache for a specific folder -


i codded php script consiste collect informations using (simple dom html) websites(from html). problem every time when launche script browses website selected , takes on 20 sec per launche. want set server cache specific foler contains script (htdocs/folder/sript.php). want set server cache execute script 1 per 5 minites example otherwise give last resaults. tried add lines .htaccess doesn't work.

since php 5.4 should use php opcache : http://php.net/manual/fr/opcache.installation.php

you can set blacklist caching : http://php.net/manual/fr/opcache.configuration.php#ini.opcache.blacklist-filename

for php < 5.4 :

you should use php apc cache :

sudo apt-get install php-apc

sudo /etc/init.d/apache2 restart

after can use like

apc.filters "[regex]" on php.ini file


Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -