1
0
Fork 0

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

@ -969,7 +969,7 @@ function query_page_info($url, $no_photos = false, $photo = "", $keywords = fals
$data = Cache::get("parse_url:".$url);
if (is_null($data)){
$data = parseurl_getsiteinfo($url, true);
Cache::set("parse_url:".$url,serialize($data));
Cache::set("parse_url:".$url,serialize($data), CACHE_DAY);
} else
$data = unserialize($data);