/** * Инвалидирует кэш * */ public function flush() { Events::call('cache.flush'); Events::call('cache.delete', $s = '*'); $res = IO_FS::clear_dir($this->path); if ($this->use_array_cache) { $this->timestamps = array(); $this->values = array(); } return $res; }