diff --git a/entitycache.module b/entitycache.module index 244512e..5096363 100644 --- a/entitycache.module +++ b/entitycache.module @@ -113,8 +113,9 @@ class EntityCacheControllerHelper extends DrupalDefaultEntityController { } if (!empty($controller->entityInfo['entity cache'])) { - // Add entities to the entity cache if we are not loading a revision. - if (!empty($queried_entities) && !$revision_id) { + // Add entities to the entity cache if we are not loading a revision or + // are loading all entities. + if (!empty($queried_entities) && !$revision_id && $ids !== FALSE) { self::entityCacheSet($controller, $queried_entities); } }