public function DrupalDefaultEntityController::resetCache

cis7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)
cle7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)
elmsmedia7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)
icor7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)
meedjum_blog7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)
mooc7 entity.inc public DrupalDefaultEntityController::resetCache(array $ids = NULL)

Implements DrupalEntityControllerInterface::resetCache().

Overrides DrupalEntityControllerInterface::resetCache

File

includes/entity.inc, line 141

Class

DrupalDefaultEntityController
Default implementation of DrupalEntityControllerInterface.

Code

public function resetCache(array $ids = NULL) {
  if (isset($ids)) {
    foreach ($ids as $id) {
      unset($this->entityCache[$id]);
    }
  }
  else {
    $this->entityCache = array();
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.