Resets the internal, static entity cache.
$ids: (optional) If specified, the cache is reset for the entities with the given ids only.
Overrides EntityStorageControllerBase::resetCache
public function resetCache(array $ids = NULL) {
parent::resetCache($ids);
// Clear the user access cache.
drupal_static_reset('user_access');
drupal_static_reset('user_role_permissions');
}