mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +01:00
48208c1ed1
Method `\CuyZ\Valinor\Cache\FileSystemCache::get()` was not properly looping on all delegates, leading to the values not being fetched from the cache files and resulting in `null` (the default value) being returned in some cases. Because of the following algorithm, the cache entry was populated again, so the cache was not really working here. ```php if ($this->cache->has($key)) { $entry = $this->cache->get($key); if ($entry) { return $entry; } } $class = $this->delegate->for($type); $this->cache->set($key, $class); return $class; ``` |
||
---|---|---|
.. | ||
CacheInjectionTest.php | ||
CacheWarmupTest.php |