mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Move Cache::set() to DI::cache()->set()
This commit is contained in:
parent
3369dfaad9
commit
f68929633b
16 changed files with 25 additions and 39 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Util;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Logger;
|
||||
use Exception;
|
||||
use Friendica\DI;
|
||||
|
||||
/**
|
||||
* @brief This class contain methods to work with JsonLD data
|
||||
|
@ -45,7 +46,7 @@ class JsonLD
|
|||
}
|
||||
|
||||
$data = jsonld_default_document_loader($url);
|
||||
Cache::set('documentLoader:' . $url, $data, Cache::DAY);
|
||||
DI::cache()->set('documentLoader:' . $url, $data, Cache::DAY);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue