mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
Make object cache configurable via the admin UI
This commit is contained in:
parent
225f02cac2
commit
f3d3122787
10 changed files with 113 additions and 6 deletions
4
classes/cache/CacheRedis.class.php
vendored
4
classes/cache/CacheRedis.class.php
vendored
|
|
@ -21,9 +21,9 @@ class CacheRedis extends CacheBase
|
|||
* @param string $url url of Redis
|
||||
* @return CacheRedis instance of CacheRedis
|
||||
*/
|
||||
function getInstance($url)
|
||||
function getInstance($url, $force_new_instance = false)
|
||||
{
|
||||
if(!$GLOBALS['__CacheRedis__'])
|
||||
if(!$GLOBALS['__CacheRedis__'] || $force_new_instance)
|
||||
{
|
||||
$GLOBALS['__CacheRedis__'] = new CacheRedis($url);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue