Lines Matching refs:cache
77 function cache($id, $data = null) { function in syntax_plugin_eventum
87 $cache = array();
89 $cache = unserialize(file_get_contents($cachefile));
95 foreach ($cache as $i => $ent) {
97 unset($cache[$i]);
103 return isset($cache[$id]) ? $cache[$id] : null;
107 $cache[$id] = $data;
108 file_put_contents($cachefile, serialize($cache));
139 $cache = $this->cache($id);
140 if ($cache !== null) {
141 return $cache;
172 $this->cache($id, $data);