function MemoryCounterBackend::resetCounter
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/MemoryCounterBackend.php \Drupal\Core\Cache\MemoryCounterBackend::resetCounter()
- 10 core/lib/Drupal/Core/Cache/MemoryCounterBackend.php \Drupal\Core\Cache\MemoryCounterBackend::resetCounter()
- 11.x core/lib/Drupal/Core/Cache/MemoryCounterBackend.php \Drupal\Core\Cache\MemoryCounterBackend::resetCounter()
Resets the call counter.
File
-
core/
lib/ Drupal/ Core/ Cache/ MemoryCounterBackend.php, line 89
Class
- MemoryCounterBackend
- Defines a memory cache implementation that counts set and get calls.
Namespace
Drupal\Core\CacheCode
public function resetCounter() {
$this->counter = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.