``` // Add loaded entities to the static cache if we are not loading a // revision. if ($this->cache && !empty($cached_entities) && !$revision_id) { $this->cacheSet($cached_entities); } } // Ensure integer entity IDs are valid. if (!empty($ids)) { $this->cleanIds($ids); } // Load any remaining entities from the database. This is the case if $ids // is set to FALSE (so we load all entities), if there are any ids left to // load or if loading a revision. if (!($this->cacheComplete && $ids === FALSE && !$conditions) && ($ids === FALSE || $ids || $revision_id)) { $queried_entities = array(); ```