- // safe to store values since this is inside the transaction
- $wgMemc->set(
- wfMemcKey( 'concurrencycheck', $this->resourceType, $record['cc_record'] ),
- array( 'userId' => $record['cc_user'], 'expiration' => $record['cc_expiration'] ),
- $record['cc_expiration'] - time()
- );
+ // TODO: implement strategy #2 above, determine which DBMSes need which method.
+ // for now, disable adding to cache here for databases that don't support read locking
+ if( $wgDBtype !== 'mysql' ) {
+ // safe to store values since this is inside the transaction
+ $wgMemc->set(
+ wfMemcKey( 'concurrencycheck', $this->resourceType, $record['cc_record'] ),
+ array( 'userId' => $record['cc_user'], 'expiration' => $record['cc_expiration'] ),
+ $record['cc_expiration'] - time()
+ );
+ }