Skip to content

Commit 3cb5fc5

Browse files
authored
Merge pull request #634 from Geolim4/master
Described clear() abstract method
2 parents 33c9c43 + 03e8317 commit 3cb5fc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Phpfastcache/Core/Pool/CacheItemPoolTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@ public function clear()
240240
/**
241241
* @eventName CacheClearItem
242242
* @param $this ExtendedCacheItemPoolInterface
243-
* @param $deferredList ExtendedCacheItemInterface[]
243+
* @param $itemInstances ExtendedCacheItemInterface[]
244244
*/
245245
$this->eventManager->dispatch('CacheClearItem', $this, $this->itemInstances);
246246

247247
CacheManager::$WriteHits++;
248+
// Faster than detachAllItems()
248249
$this->itemInstances = [];
249250

250251
return $this->driverClear();

0 commit comments

Comments
 (0)