function radioactivity_determine_memcached_availability in Radioactivity 6
Same name and namespace in other branches
- 5 radioactivity.inc \radioactivity_determine_memcached_availability()
3 calls to radioactivity_determine_memcached_availability()
- radioactivity_admin_general_form in ./
radioactivity-admin-ui.inc - @file Radioactivity core admin UI.
- radioactivity_get_memcached_enable in ./
radioactivity.inc - radioactivity_requirements in ./
radioactivity.module
File
- ./
radioactivity.inc, line 257
Code
function radioactivity_determine_memcached_availability() {
static $availability;
if (!isset($availability)) {
if (!function_exists('dmemcache_object')) {
$availability = RADIOACTIVITY_MEMCACHE_NO_MODULE;
}
elseif (!dmemcache_object('radioactivity')) {
$availability = RADIOACTIVITY_MEMCACHE_NO_BIN;
}
else {
$availability = RADIOACTIVITY_MEMCACHE_OK;
}
}
return $availability;
}