We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a2f27 commit 8092980Copy full SHA for 8092980
lib/Phpfastcache/Core/Pool/CacheItemPoolTrait.php
@@ -240,11 +240,12 @@ public function clear()
240
/**
241
* @eventName CacheClearItem
242
* @param $this ExtendedCacheItemPoolInterface
243
- * @param $deferredList ExtendedCacheItemInterface[]
+ * @param $itemInstances ExtendedCacheItemInterface[]
244
*/
245
$this->eventManager->dispatch('CacheClearItem', $this, $this->itemInstances);
246
247
CacheManager::$WriteHits++;
248
+ // Faster than detachAllItems()
249
$this->itemInstances = [];
250
251
return $this->driverClear();
0 commit comments