Lines Matching refs:cache
114 $cache = new refnotes_reference_database_cache();
121 $this->page[$pageId] = new refnotes_reference_database_page($this, $cache, $pageId);
126 $cache->save();
194 public function __construct($database, $cache, $id) {
201 if ($cache->isCached($this->fileName)) {
202 $this->namespace = $cache->getNamespaces($this->fileName);
207 $cache->update($this->fileName, $this->namespace);
475 private $cache;
494 $this->cache = array();
498 $this->cache = unserialize(io_readFile($this->fileName, false));
501 foreach (array_keys($this->cache) as $fileName) {
514 if (array_key_exists($fileName, $this->cache)) {
515 if ($this->cache[$fileName]['time'] == @filemtime($fileName)) {
529 return $this->cache[$fileName]['ns'];
536 $this->cache[$fileName] = array('ns' => $namespace, 'time' => @filemtime($fileName));
547 io_saveFile($this->fileName, serialize($this->cache));
556 if (!$requested && array_key_exists($fileName, $this->cache)) {
557 unset($this->cache[$fileName]);