I working with nginx and php-fpm and use unix:/cls/php-fpm.socket;
I have enable xcache for hole server setting it in php.ini
and want to disable xcache for 1 domain
I did it with this in server config in nginx
location ~ ^/.+\.php {
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/user/public_html/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=\"/home/user/public_html/:/tmp:/usr/local/lib/php:\"
xcache.cacher=\"Off\"
xcache.size=\"0\"
xcache.stat=\"Off\"
xcache.var_size=\"0\"
include_path=\"/usr/lib/php:/usr/local/lib/php:/tmp:/home/user/public_html/\"";
include /etc/nginx/fastcgi_params;
}
this should disable xcache, and when try to use phpinfo on that domain its give me that xcache install but xcache.size=0 // that mean its disabled
but while browseing cache is still enable . don't know why?
I try to use custom php.ini for that domain, but don't know how after search found this user_ini.filename=\"/etc/php/php3.ini\" (php3.ini not have xcache extension)
how to use custom php.ini for 1 domain with nginx and php-fpm and fastcgi
try to use it , but not working