I have one virtual server with 2 installations of drupal. One is for testing purposes. Is it possible to restrict usage of APC to certain directories only, so the testing page won't eat the same amount of resources as production site? My files are installed on server like this:

data/web/mydomain.com/web - I want to use apc here.
data/web/mydomain/sub/test - I do not want to use apc.

Thank you

Comments

Sarenc’s picture

The way I do this is apc.cache_by_default = 0 in /etc/php.d/myfile.ini then apc.cache_by_default = 1 in the .htaccess file of the production site.

Or you can just set apc.cache_by_default = 0 in data/web/mydomain/sub/test/.htaccess

R.Muilwijk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.