mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Cache items for longer period (5 years actually)
This commit is contained in:
parent
6dc62cca13
commit
f8c2f0f01b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user