]> git.mxchange.org Git - friendica.git/commitdiff
Renamed function
authorMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 18:24:43 +0000 (18:24 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 18:24:43 +0000 (18:24 +0000)
src/Worker/SearchDirectory.php

index 63bc4e0d84e56ea6b4eaa8f46937035b17505163..4fd6d44d509fca8f2689a13816dc846e1131eb92 100644 (file)
@@ -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);
        }
 }