Commit 1ee7c373 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 1df10d01
...@@ -657,8 +657,8 @@ class Media { ...@@ -657,8 +657,8 @@ class Media {
} }
private function jsonCacheDecoder($url){ private function jsonCacheDecoder($url){
$CacheFolderName = "JsonCache/"; $CacheFolderName = "JsonCache/";
exec("rm ".$CacheFolderName.date("y-W_",time()-14*24*3600)."*"); exec("rm ".$CacheFolderName.date("y-W_",time()-14*24*3600)."* > /dev/null 2>&1");
exec("rm ".$CacheFolderName.date("y-W_",time()-7*24*3600)."*"); exec("rm ".$CacheFolderName.date("y-W_",time()-7*24*3600)."* > /dev/null 2>&1");
if(!is_dir($CacheFolderName)){ if(!is_dir($CacheFolderName)){
exec( "mkdir ".$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