From 33cb241ed3283f18961a867ca6f99f9b8b76ec4a Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Dec 2019 18:24:43 +0000 Subject: [PATCH] Renamed function --- src/Worker/SearchDirectory.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Worker/SearchDirectory.php b/src/Worker/SearchDirectory.php index 63bc4e0d8..4fd6d44d5 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); } }