mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +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)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@
|
|||
<label class="x_control-label">{$lang->use_object_cache}</label>
|
||||
<div class="x_controls">
|
||||
<select name="object_cache_type" id="object_cache_type">
|
||||
<option value="">{$lang->use_object_cache_do_not_use}</option>
|
||||
<option value="{$key}" loop="$object_cache_types=>$key" selected="selected"|cond="$key==$object_cache_type">{$key}</option>
|
||||
</select>
|
||||
<div id="object_cache_additional_config" class="x_inline" style="display:none;margin-left:16px">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue