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
parent 26c5c7991a
commit b52bc71c6c
9 changed files with 33 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){
if ($txt[0]!="{") $txt='{"type":"error"}';
//save in cache
Cache::set($a->videowidth . $embedurl,$txt);
Cache::set($a->videowidth . $embedurl,$txt, CACHE_DAY);
}