Lines Matching defs:cache
14 * The $cache parameter influences how long files may be kept in caches, the $public parameter
15 * influences if this caching may happen in public proxis or in the browser cache only FS#2734
23 * @param int $cache remaining cache time in seconds (-1 for $conf['cache'], 0 for no-cache)
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = [])
41 // calculate cache times
42 if ($cache == -1) {
45 } elseif ($cache > 0) {
46 $maxage = $cache; // given time
48 } else { // $cache == 0
56 // cache publically
60 // cache in browser
65 // no cache at all
67 header('Cache-Control: no-cache, no-transform');
198 * @param string $cache
201 function calc_cache($cache)
205 if (strtolower($cache) == 'nocache') return 0; //never cache
206 if (strtolower($cache) == 'recache') return $conf['cachetime']; //use standard cache
207 return -1; //cache endless