Skip to content
Snippets Groups Projects
Commit e7942be7 authored by Laurent's avatar Laurent
Browse files

dev #95747 add supports for memcached extension

parent deb464e2
Branches
Tags 8.0.24
2 merge requests!3297WIP: Master,!3252Hotline
Pipeline #8285 failed with stage
in 30 minutes and 18 seconds
- ticket #95747 : Bokeh supporte l'extension PHP memcached
\ No newline at end of file
...@@ -177,8 +177,15 @@ class Bokeh_Engine { ...@@ -177,8 +177,15 @@ class Bokeh_Engine {
: ['cache_dir' => PATH_TEMP ]; : ['cache_dir' => PATH_TEMP ];
// getting a Zend_Cache_Core object // getting a Zend_Cache_Core object
$backend = 'File';
if ($use_memcached) {
$backend = extension_loaded('memcached')
? 'Memcached'
: 'Memcache';
}
$cache = Zend_Cache::factory('Core', $cache = Zend_Cache::factory('Core',
$use_memcached ? 'Memcached' : 'File', $backend,
$frontendOptions, $frontendOptions,
$backendOptions); $backendOptions);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment