public function DrupalCommerceEntityController::resetCache in Commerce Core 7
Implements DrupalEntityControllerInterface::resetCache().
Overrides DrupalDefaultEntityController::resetCache
1 call to DrupalCommerceEntityController::resetCache()
- DrupalCommerceEntityController::delete in includes/
commerce.controller.inc - Delete permanently saved entities.
File
- includes/
commerce.controller.inc, line 82 - Provides a central controller for Drupal Commerce.
Class
- DrupalCommerceEntityController
- Default implementation of DrupalCommerceEntityControllerInterface.
Code
public function resetCache(array $ids = NULL) {
parent::resetCache($ids);
// Maintain the list of locked entities, so that the releaseLock() method
// can know when it's time to commit the transaction.
if (!empty($this->lockedEntities)) {
if (isset($ids)) {
foreach ($ids as $id) {
unset($this->lockedEntities[$id]);
}
}
else {
$this->lockedEntities = array();
}
}
// Try to release the lock, if possible.
$this
->releaseLock();
}