Lines Matching refs:cache
68 $cache = new cache_ghissues_api($apiURL);
69 $this->checkCacheFreshness($apiURL, $cache);
70 return ($cache->cache);
74 public function checkCacheFreshness($apiURL, &$cache=NULL) { argument
76 if ( !isset($cache) ) {
77 $cache = new cache_ghissues_api($apiURL);
81 if ( $cache->sniffETag($this->getConf('ghissuerefresh')) ) return true;
84 return $this->callGithubAPI($apiURL, $cache);
88 public function callGithubAPI($apiURL, &$cache=NULL) { argument
90 if ( !isset($cache) ) {
91 $cache = new cache_ghissues_api($apiURL);
109 $lastETag = $cache->retrieveETag();
130 $cache->storeETag($apiHead['etag']); // Update the last time we checked
148 if ( $newTable != $cache->retrieveCache() ) {
149 if (!$cache->storeCache($newTable)) {
153 $cache->storeETag($apiHead['etag']); // Update the last time we checked
156 $cache->storeETag($apiHead['etag']); // Update the last time we checked
164 $errorTable .= '</div>'."\n".$cache->retrieveCache();
166 if (!$cache->storeCache($errorTable)) {
268 class cache_ghissues_api extends cache {
273 parent::cache($requestURL,'.ghissues');
274 $this->etag = substr($this->cache, 0, -9).'.etag';