diff --git a/system/memcached.php b/system/memcached.php index 95350311..5156e825 100644 --- a/system/memcached.php +++ b/system/memcached.php @@ -16,7 +16,12 @@ class Memcached { */ public static function instance() { - return ( ! is_null(static::$instance)) ? static::$instance : static::$instance = static::connect(Config::get('cache.servers')); + if (is_null(static::$instance)) + { + static::$instance = static::connect(Config::get('cache.servers')); + } + + return static::$instance; } /**