contributions/cache.xcache/start.inc.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup XCache 00004 * @ingroup Cache 00005 * 00006 * Replace DB-based cache and sessions with XCache based - that is: store cache in memory 00007 * 00008 * @section Usage 00009 * 00010 * When enabled, the cache persistence gets changed to XCache. Nothing else to do. 00011 * 00012 * @section Notes Additional notes 00013 * 00014 * This module requires XCache (http://xcache.lighttpd.net/) to be installed and 00015 * configured properly. Check especially xcache.var_size in xcache config! 00016 */ 00017 if (function_exists('xcache_unset_by_prefix')) { 00018 require_once dirname(__FILE__) . '/cache.xcache13.impl.php'; 00019 Cache::set_implementation(new CacheXCache13Impl()); 00020 } 00021 else { 00022 require_once dirname(__FILE__) . '/cache.xcache12.impl.php'; 00023 Cache::set_implementation(new CacheXCache12Impl()); 00024 } 00025