mirror of
https://github.com/friendica/friendica
synced 2025-04-22 06:30:11 +00: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
|
@ -53,7 +53,7 @@ class Index extends BaseSearchModule
|
|||
$crawl_permit_period = 10;
|
||||
|
||||
$remote = $_SERVER['REMOTE_ADDR'];
|
||||
$result = Cache::get('remote_search:' . $remote);
|
||||
$result = DI::cache()->get('remote_search:' . $remote);
|
||||
if (!is_null($result)) {
|
||||
$resultdata = json_decode($result);
|
||||
if (($resultdata->time > (time() - $crawl_permit_period)) && ($resultdata->accesses > $free_crawls)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue