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
|
@ -221,7 +221,7 @@ function ping_init(App $a)
|
|||
DBA::escape(DateTimeFormat::utcNow())
|
||||
);
|
||||
if (DBA::isResult($ev)) {
|
||||
Cache::set($cachekey, $ev, CACHE_HOUR);
|
||||
Cache::set($cachekey, $ev, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -136,9 +136,9 @@ function search_content(App $a) {
|
|||
"description" => L10n::t("Only one search per minute is permitted for not logged in users.")]);
|
||||
killme();
|
||||
}
|
||||
Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => $resultdata->accesses + 1]), CACHE_HOUR);
|
||||
Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => $resultdata->accesses + 1]), Cache::HOUR);
|
||||
} else
|
||||
Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => 1]), CACHE_HOUR);
|
||||
Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => 1]), Cache::HOUR);
|
||||
}
|
||||
|
||||
Nav::setSelected('search');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue