- /**
- * Reap the WANCache entry for this table.
- *
- * @param callable $purgeCallback Callback to 'purge' the WAN cache
- */
- private function purgeWANCache( $purgeCallback ) {
- // If the LB has no DB changes don't bother with onTransactionPreCommitOrIdle
- if ( !$this->loadBalancer->hasOrMadeRecentMasterChanges() ) {
- $purgeCallback();
- return;
- }
-
- $this->getDBConnection( DB_MASTER )
- ->onTransactionPreCommitOrIdle( $purgeCallback, __METHOD__ );
- }
-