mirror of
https://github.com/friendica/friendica
synced 2025-05-05 23:04:09 +02:00
Move Cache::get() to DI::cache()->get()
This commit is contained in:
parent
f68929633b
commit
fe078410a1
16 changed files with 20 additions and 33 deletions
|
@ -27,7 +27,7 @@ class SearchDirectory
|
|||
return;
|
||||
}
|
||||
|
||||
$data = Cache::get('SearchDirectory:' . $search);
|
||||
$data = DI::cache()->get('SearchDirectory:' . $search);
|
||||
if (!is_null($data)) {
|
||||
// Only search for the same item every 24 hours
|
||||
if (time() < $data + (60 * 60 * 24)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue