public function index() { echo 'give a test'; //$this->load->view('welcome/index'); $path = APPPATH . 'controllers/Tools.php'; if (file_exists($path)) { apc_clear_cache(); Apc::cache_file($path); echo 'cache it'; } }
private static function create() { if (empty(self::$cacheInstance)) { $sCachingMethod = \General\Config::getInstance()->get('cacheMethod'); if ($sCachingMethod === 'apc' && !(extension_loaded('apc') && ini_get('apc.enabled'))) { $sCachingMethod = 'Mem'; } switch ($sCachingMethod) { case 'Apc': self::$cacheInstance = Apc::getInstance(); break; case 'Memcached': self::$cacheInstance = Memcached::getInstance(); break; default: self::$cacheInstance = Variable::getInstance(); break; } } }
public function testSupportsMetadata() { $adapter = new Apc(self::PREFIX); $this->assertFalse($adapter->supportsMetadata()); }