Lines Matching refs:Cache
193 $Cache = null;
196 $Cache = file_get_contents($filename);
197 $Cache = unserialize($Cache);
199 $Update = $Cache["Update"];
204 $Cache = $Cache["Table"];
207 return array($Update,$Cache);
212 $Cache["Update"] = $timestamp;
213 $Cache["Table"] = $rs;
215 $Cache = serialize($Cache);
218 fwrite($handle,$Cache);
244 $Cache = $this->_load($filename);
246 if(is_array($Cache)){
247 $Update = $Cache[0];
248 $Cache = $Cache[1];
265 if(isset($Cache)){
267 return($this->_print($Cache));
280 $difference = $this->_difference($Cache,$rs);
339 private function _difference($Cache,$New){ argument
341 if($New == $Cache){
346 if(!isset($New) && isset($Cache))
347 return array($this->_print($Cache),$this->_message($this->getLang("difference")));
349 if(isset($New) && !isset($Cache))
353 return array($this->_print($Cache),$this->_message($this->getLang("connection")));
355 $Max = count($Cache);
356 if(count($New) > count($Cache))
362 if(isset($Cache[$i]) && !isset($New[$i]))
363 $PrintArray[] = array_merge($Cache[$i],array("type" => $this->aMessages["deleted"]));
365 if(!isset($Cache[$i]) && isset($New[$i]))
368 if(isset($Cache[$i]) && isset($New[$i])){
369 if($Cache[$i] != $New[$i]){
370 $PrintArray[] = array_merge($Cache[$i],array("type" => $this->aMessages["changed"]));