From 52a021a206ec7612c59259b30a5c7ba7b46cf181 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Tue, 29 Mar 2011 13:58:00 +1300 Subject: [PATCH] MINOR: Use a seperate backend for aggregate caching, to avoid problems with aggregate cache and manifest caches interfering and causing speed issues --- _config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_config.php b/_config.php index 5d13ece44..4d3e38757 100755 --- a/_config.php +++ b/_config.php @@ -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);