mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removing redundant aggregatestore cache config (#3404)
This commit is contained in:
parent
c0abb08b61
commit
c7fb61120e
@ -38,12 +38,6 @@ ShortcodeParser::get('default')->register('embed', array('Oembed', 'handle_short
|
|||||||
$_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
|
$_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
|
||||||
$_ENV['TMP'] = TEMP_FOLDER; // for Windows
|
$_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);
|
|
||||||
|
|
||||||
SS_Cache::set_cache_lifetime('GDBackend_Manipulations', null, 100);
|
SS_Cache::set_cache_lifetime('GDBackend_Manipulations', null, 100);
|
||||||
|
|
||||||
// If you don't want to see deprecation errors for the new APIs, change this to 3.2.0-dev.
|
// If you don't want to see deprecation errors for the new APIs, change this to 3.2.0-dev.
|
||||||
|
Loading…
Reference in New Issue
Block a user