aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-23 05:18:58 -0700
committerredmatrix <git@macgirvin.com>2016-06-23 05:18:58 -0700
commite5c66d94f22d0efcdec0796872e9be81bff1bb4e (patch)
tree9b6cac3efd69cc4f4b9416b22d1ce9546862b0b2 /include/oembed.php
parent2a32713dfc3e508ba5cf21d552083438a438201d (diff)
downloadvolse-hubzilla-e5c66d94f22d0efcdec0796872e9be81bff1bb4e.tar.gz
volse-hubzilla-e5c66d94f22d0efcdec0796872e9be81bff1bb4e.tar.bz2
volse-hubzilla-e5c66d94f22d0efcdec0796872e9be81bff1bb4e.zip
relocate the cache class
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 08363e488..f1d9bd7d2 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -1,6 +1,8 @@
<?php /** @file */
+use Zotlabs\Lib as Zlib;
+
function oembed_replacecb($matches){
$embedurl=$matches[1];
@@ -130,7 +132,7 @@ function oembed_fetch_url($embedurl){
$txt = null;
if($action !== 'block') {
- $txt = Cache::get(App::$videowidth . $embedurl);
+ $txt = Zlib\Cache::get('[' . App::$videowidth . '] ' . $embedurl);
if(strstr($txt,'youtu') && strstr(z_root(),'https:')) {
$txt = str_replace('http:','https:',$txt);
@@ -199,7 +201,7 @@ function oembed_fetch_url($embedurl){
//save in cache
if(! get_config('system','oembed_cache_disable'))
- Cache::set(App::$videowidth . $embedurl,$txt);
+ Zlib\Cache::set('[' . App::$videowidth . '] ' . $embedurl,$txt);
}