mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 17:54:55 +02:00
Cache items for longer period (5 years actually)
This commit is contained in:
@@ -41,7 +41,7 @@ class Items
|
|||||||
|
|
||||||
require_once LIBS . 'cache_php.php';
|
require_once LIBS . 'cache_php.php';
|
||||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE);
|
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE);
|
||||||
$cache_php->set('items', $items);
|
$cache_php->set('items', $items, 5 * 365 * 24 * 60 * 60);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user