From 83943ce70d62a67ef9668631c9cd3835ccfdee88 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 26 May 2017 13:12:18 +0300 Subject: [PATCH] Namespace and TTL not needed in MemoryCache adapter --- .../src/Grav/Framework/Cache/Adapter/MemoryCache.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php b/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php index 9e164ea2d..b9dd35ac0 100644 --- a/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php +++ b/system/src/Grav/Framework/Cache/Adapter/MemoryCache.php @@ -11,7 +11,7 @@ namespace Grav\Framework\Cache\Adapter; use Grav\Framework\Cache\AbstractCache; /** - * Cache class for PSR-16 compatible "Simple Cache" implementation using memory backend. + * Cache class for PSR-16 compatible "Simple Cache" implementation using in memory backend. * Memory backend does not use namespace or ttl as the cache is unique to each cache object and request. * * @package Grav\Framework\Cache @@ -21,15 +21,11 @@ class MemoryCache extends AbstractCache protected $cache = []; /** - * Doctrine Cache constructor. - * - * @param string $namespace - * @param null|int|\DateInterval $defaultLifetime + * Memory Cache constructor. */ - public function __construct($namespace = '', $defaultLifetime = null) + public function __construct() { - // Do not use $namespace or $defaultLifetime directly, store them with constructor and fetch with methods. - parent::__construct($namespace, $defaultLifetime); + parent::__construct(); } protected function doGet($key, $default)