public function CacheBase::postRootTransactionCommit in Redis 8
Callback to be invoked after a database transaction gets committed.
Invalidates all delayed cache deletions.
Parameters
bool $success: Whether or not the transaction was successful.
File
- src/
Cache/ CacheBase.php, line 190
Class
- CacheBase
- Base class for redis cache backends.
Namespace
Drupal\redis\CacheCode
public function postRootTransactionCommit($success) {
if ($success) {
$this
->doDeleteMultiple($this->delayedDeletions);
}
$this->delayedDeletions = [];
}