mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-15 02:04:54 +02:00
Towns & NPCs & Items should be persistent
This commit is contained in:
@@ -41,7 +41,7 @@ class NPCs
|
||||
}
|
||||
|
||||
require_once LIBS . 'cache_php.php';
|
||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE);
|
||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
||||
$cache_php->set('npcs', $npcs, 5 * 365 * 24 * 60 * 60);
|
||||
return true;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class NPCs
|
||||
}
|
||||
|
||||
require_once LIBS . 'cache_php.php';
|
||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE);
|
||||
$cache_php = new Cache_PHP(config('cache_prefix'), CACHE . 'persistent');
|
||||
self::$npcs = $cache_php->get('npcs');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user