From: Michael Date: Sat, 21 Dec 2019 18:24:43 +0000 (+0000) Subject: Renamed function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33cb241ed3283f18961a867ca6f99f9b8b76ec4a;p=friendica.git Renamed function --- diff --git a/src/Worker/SearchDirectory.php b/src/Worker/SearchDirectory.php index 63bc4e0d84..4fd6d44d50 100644 --- a/src/Worker/SearchDirectory.php +++ b/src/Worker/SearchDirectory.php @@ -26,13 +26,7 @@ class SearchDirectory return; } - self::discoverDirectory($search); - return; - } - - private static function discoverDirectory($search) - { - $data = Cache::get('discoverDirectory' . $search); + $data = Cache::get('SearchDirectory:' . $search); if (!is_null($data)) { // Only search for the same item every 24 hours if (time() < $data + (60 * 60 * 24)) { @@ -86,6 +80,6 @@ class SearchDirectory } } } - Cache::set('discoverDirectory' . $search, time(), Cache::DAY); + Cache::set('SearchDirectory:' . $search, time(), Cache::DAY); } }