Now you can define the duration of the cache entries.

This commit is contained in:
Michael Vogel 2015-08-24 17:24:14 +02:00
commit b52bc71c6c
9 changed files with 33 additions and 22 deletions

View file

@ -183,7 +183,7 @@ function discover_directory($search) {
poco_check($data["url"], $data["name"], $data["network"], $data["photo"], "", "", "", $jj->tags, $data["addr"], "", 0);
}
}
Cache::set("dirsearch:".$search, time());
Cache::set("dirsearch:".$search, time(), CACHE_DAY);
}
if (array_search(__file__,get_included_files())===0){