]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/AbstractCacheDriver.php
Merge pull request #5862 from nupplaphil/rename_App_Methods
[friendica.git] / src / Core / Cache / AbstractCacheDriver.php
index 1cdecf6ceb0ce6ff9473bdc8f0a8f4647e600298..c2628551ef47be5dee31908af0b883e0520a37e4 100644 (file)
@@ -20,7 +20,7 @@ abstract class AbstractCacheDriver extends BaseObject
        protected function getCacheKey($key)
        {
                // We fetch with the hostname as key to avoid problems with other applications
-               return self::getApp()->get_hostname() . ":" . $key;
+               return self::getApp()->getHostName() . ":" . $key;
        }
 
        /**
@@ -34,7 +34,7 @@ abstract class AbstractCacheDriver extends BaseObject
                } else {
                        // Keys are prefixed with the node hostname, let's remove it
                        array_walk($keys, function (&$value) {
-                               $value = preg_replace('/^' . self::getApp()->get_hostname() . ':/', '', $value);
+                               $value = preg_replace('/^' . self::getApp()->getHostName() . ':/', '', $value);
                        });
 
                        sort($keys);