Now you can define the duration of the cache entries.
This commit is contained in:
parent
26c5c7991a
commit
b52bc71c6c
9 changed files with 33 additions and 22 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue