SproutCMS

This is the code documentation for the SproutCMS project

class Xcache

Xcache Cache driver.

Source code (2 results)

/sprout/config/cache_xcache.php   Highlighted file source

Line 18: * @package Cache:Xcache
Line 20: * Xcache administrator username.
Line 25: * Xcache administrator password.

/sprout/Helpers/Drivers/Cache/Xcache.php   Highlighted file source

Line 25: * Xcache Cache driver.
Line 27: class Xcache implements CacheDriver
Line 32: if ( ! extension_loaded('xcache'))
Line 33: throw new Kohana_Exception('cache.extension_not_loaded', 'xcache');
Line 38: if (xcache_isset($id))
Line 39: return xcache_get($id);
Line 48: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 51: return xcache_set($id, $data, $lifetime);
Line 56: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 64: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 69: if (xcache_isset($id))
Line 70: return xcache_unset($id);
Line 79: for ($i = 0, $max = xcache_count(XC_TYPE_VAR); $i < $max; $i++)
Line 81: if (xcache_clear_cache(XC_TYPE_VAR, $i) !== NULL)
Line 130: $_SERVER[$key] = Kohana::config('cache_xcache.'.$key);
Line 135: } // End Cache Xcache Driver

A total of 19 lines in 2 files were found