Move Global Functions - Part 3
- Replaced every CACHE definition - Moved check_url to App->checkURL() - Removed unused definition "ZCURL_TIMEOUT"
This commit is contained in:
parent
ec9f1563f9
commit
4392858662
16 changed files with 43 additions and 70 deletions
|
@ -120,9 +120,9 @@ class OEmbed
|
|||
'content' => $json_string,
|
||||
'created' => DateTimeFormat::utcNow()
|
||||
], true);
|
||||
$cache_ttl = CACHE_DAY;
|
||||
$cache_ttl = Cache::DAY;
|
||||
} else {
|
||||
$cache_ttl = CACHE_FIVE_MINUTES;
|
||||
$cache_ttl = Cache::FIVE_MINUTES;
|
||||
}
|
||||
|
||||
Cache::set($cache_key, $json_string, $cache_ttl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue