apache2 - how to restrict apc to only one installation of drupal on virtual server -


i have 1 virtual server 2 installations of drupal. 1 testing purposes. possible restrict usage of apc directories only, testing page won't eat same amount of resources production site? files installed on server this:

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

thank you

to answer specific question: is possible restrict usage of apc directories only? yes.

use apc.filters directive in apc.ini file:

a comma-separated list of posix extended regular expressions. if pattern matches source filename, file not cached. note filename used matching 1 passed include/require, not absolute path. if first character of expression + expression additive in sense files matched expression cached, , if first character - matched not cached. - case default, can left off.

so, exclude testing directory, add following apc.ini file , restart apache:

apc.filters = "-/data/web/mydomain/sub/test/.*"


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -