MINOR: Use a seperate backend for aggregate caching, to avoid problems with aggregate cache and manifest caches interfering and causing speed issues

This commit is contained in:
Hamish Friedlander 2011-03-29 13:58:00 +13:00
parent 1a598fe39e
commit 52a021a206
1 changed files with 6 additions and 0 deletions

View File

@ -76,3 +76,9 @@ PasswordEncryptor::register('sha1_v2.4','PasswordEncryptor_PHPHash("sha1")');
// Zend_Cache temp directory setting
$_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
$_ENV['TMP'] = TEMP_FOLDER; // for Windows
$aggregatecachedir = TEMP_FOLDER . DIRECTORY_SEPARATOR . 'aggregate_cache';
if (!is_dir($aggregatecachedir)) mkdir($aggregatecachedir);
SS_Cache::add_backend('aggregatestore', 'File', array('cache_dir' => $aggregatecachedir));
SS_Cache::pick_backend('aggregatestore', 'aggregate', 1000);