Lines Matching defs:cache
17 * @param int $timestamp lastmodified time of the cache file
214 * HTTP headers. If a useable cache is present, it is passed to the web server
217 * @param string $cache cache file name
218 * @param bool $cache_ok if cache can be used
220 function http_cached($cache, $cache_ok)
224 // check cache age & handle conditional request
229 http_conditionalRequest(filemtime($cache));
230 if ($conf['allowdebug']) header("X-CacheUsed: $cache");
233 if ($conf['gzip_output'] && http_gzip_valid($cache)) {
236 readfile($cache . ".gz");
238 http_sendfile($cache);
239 readfile($cache);
257 // save cache file