Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Sarenc CreditAttribution: Sarenc commentedThe 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
Comment #2
R.Muilwijk CreditAttribution: R.Muilwijk commented