mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
Add dummy cache driver to use if no cache is configured
This commit is contained in:
parent
ca56ff474f
commit
b8db18a242
4 changed files with 183 additions and 2 deletions
|
|
@ -458,6 +458,10 @@ class adminAdminView extends admin
|
|||
}
|
||||
$object_cache_types = Rhymix\Framework\Cache::getSupportedDrivers();
|
||||
$object_cache_type = preg_replace('/^memcache$/', 'memcached', preg_replace('/:.+$/', '', $object_cache_config));
|
||||
if (!$object_cache_type)
|
||||
{
|
||||
$object_cache_type = 'dummy';
|
||||
}
|
||||
Context::set('object_cache_types', $object_cache_types);
|
||||
Context::set('object_cache_type', $object_cache_type);
|
||||
if ($object_cache_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue