feat: add leading dot to cache files
This commit is contained in:
parent
fc8f598309
commit
80737e207c
|
@ -48,7 +48,7 @@ if(array_key_exists($what, $cals)) {
|
|||
die("{'err':'not found'}");
|
||||
}
|
||||
|
||||
$cachePre = 'cache/calendar';
|
||||
$cachePre = 'cache/.calendar';
|
||||
$cachePost = '.cache';
|
||||
$cacheAge = 10800;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ function getPoint($baseurl, $url) {
|
|||
$homeLat = $pois[0]["lat"];
|
||||
$homeLon = $pois[0]["lon"];
|
||||
|
||||
$cache = "./cache/$url.cache";
|
||||
$cache = "./cache/.$url.cache";
|
||||
try {
|
||||
$point = json_decode(apiFuncs\cache_contents($baseurl.$url, $cache, 43200, true), true);
|
||||
$ret = $point[$url];
|
||||
|
|
|
@ -6,7 +6,7 @@ include_once($_SERVER['DOCUMENT_ROOT'].'/inc/funcs.php');
|
|||
originHelper\origin::check($config['allowed-origins']);
|
||||
|
||||
$feed = "https://www.regioterre.sg/category/aktuelle-tasche/feed/";
|
||||
$cache = "cache/regioterre.cache";
|
||||
$cache = "cache/.regioterre.cache";
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ function parseWeather($list)
|
|||
}
|
||||
|
||||
|
||||
$weatherCache = "cache/weather.cache";
|
||||
$weatherCache = "cache/.weather.cache";
|
||||
$weatherUrl = "https://api.openweathermap.org/data/2.5/forecast";
|
||||
$weatherUrl .= "?q=" . $config['weather-location'] . "&units=metric&APPID=" . $config['weather-api']; //&cnt=16
|
||||
try {
|
||||
|
|
|
@ -177,7 +177,7 @@ function summarizeDay($dayArray)
|
|||
return $ret;
|
||||
}
|
||||
|
||||
$weatherCache = "cache/weather2.cache";
|
||||
$weatherCache = "cache/.weather2.cache";
|
||||
$weatherUrl = "https://api.met.no/weatherapi/locationforecast/2.0/compact";
|
||||
$weatherUrl .= "?altitude=" . $config['weather-alt'] . "&lat=" . $config['weather-lat'] . "&lon=" . $config['weather-lon'];
|
||||
try {
|
||||
|
|
|
@ -10,7 +10,7 @@ header('Content-Type: application/octet-stream');
|
|||
header('Content-Disposition: attachment; filename="epg.xml.gz"');
|
||||
|
||||
$debug = false;
|
||||
$file = 'epg.cache';
|
||||
$file = '.epg.cache';
|
||||
$cache_age = 28800; // 8h
|
||||
|
||||
$ret = "";
|
||||
|
@ -34,7 +34,7 @@ echo $ret;
|
|||
*/
|
||||
|
||||
$source = "./TV7_EPG_Parser/tv7_epg.xml";
|
||||
$dest = "./epg-self.cache";
|
||||
$dest = "./.epg-self.cache";
|
||||
|
||||
gzCompressFile($source, $dest, 8);
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ header('Content-Type: application/octet-stream');
|
|||
header('Content-Disposition: attachment; filename="epg.xml"');
|
||||
|
||||
$debug = false;
|
||||
$file = 'epg.cache';
|
||||
$file = '.epg.cache';
|
||||
$cache_age = 28800; // 8h
|
||||
|
||||
$ret = "";
|
||||
|
|
|
@ -17,7 +17,7 @@ header('Content-Type: audio/mpegurl');
|
|||
header('Content-Disposition: attachment; filename="Fiber7.TV.m3u"');
|
||||
|
||||
$debug = false;
|
||||
$file = 'channels.cache';
|
||||
$file = '.channels.cache';
|
||||
$cache_age = 28800; // 8h
|
||||
|
||||
$ret = "";
|
||||
|
|
|
@ -18,7 +18,7 @@ $filterGroups = array("chde","de","en","es","gr","ru");
|
|||
header('Content-Type: text/plain');
|
||||
|
||||
$debug = true;
|
||||
$file = 'channels.cache';
|
||||
$file = '.channels.cache';
|
||||
$cache_age = 28800; // 8h
|
||||
|
||||
$ret = "";
|
||||
|
|
Loading…
Reference in New Issue