This commit is contained in:
Pablo Ferreiro
2024-08-20 21:02:34 +02:00
parent f1f69533a8
commit bbbe6c2dba
17 changed files with 1559 additions and 170 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class JSONCache implements ICache {
return is_file($filename);
}
public function set(string $cache_key, string $data, $timeout = 3600) {
public function set(string $cache_key, string $data, int $timeout = 3600) {
file_put_contents($this->cache_path . '/' . $cache_key . '.json', $data);
}
}