Commit 4d7cb834 authored by Nico Schallehn's avatar Nico Schallehn

cache von den letzten 3 tagen löschen

parent cfcf1094
......@@ -3,6 +3,8 @@ include('../api.class.php');
define("Fanart_Key","9902c9197f457401ff7a7eba839213ba");
function jsonCacheDecoder($url){
$CacheFolderName = "jsoncache/";
exec("rm ".$CacheFolderName.date("y-m-d_",time()-3*24*3600)."*");
exec("rm ".$CacheFolderName.date("y-m-d_",time()-2*24*3600)."*");
exec("rm ".$CacheFolderName.date("y-m-d_",time()-24*3600)."*");
if(!is_dir($CacheFolderName)){
exec( "mkdir ".$CacheFolderName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment