/** * Purges the cache store, and loader if there is one. * * @return bool True on success, false otherwise */ public function purge() { // 1. Purge the static acceleration array. $this->static_acceleration_purge(); // 2. Purge the store. $this->store->purge(); // 3. Optionally pruge any stacked loaders. if ($this->loader) { $this->loader->purge(); } return true; }
/** * Purges the cache store, and loader if there is one. * * @return bool True on success, false otherwise */ public function purge() { // 1. Purge the persist cache. $this->persistcache = array(); // 2. Purge the store. $this->store->purge(); // 3. Optionally pruge any stacked loaders. if ($this->loader) { $this->loader->purge(); } return true; }
/** * Purges the cache store, and loader if there is one. * * @return bool True on success, false otherwise */ public function purge() { // 1. Purge the static acceleration array. $this->staticaccelerationarray = array(); if ($this->staticaccelerationsize !== false) { $this->staticaccelerationkeys = array(); $this->staticaccelerationcount = 0; } // 2. Purge the store. $this->store->purge(); // 3. Optionally pruge any stacked loaders. if ($this->loader) { $this->loader->purge(); } return true; }