diff --git a/includes/datasource_entity.inc b/includes/datasource_entity.inc
index 034bb52..09774d3 100644
--- a/includes/datasource_entity.inc
+++ b/includes/datasource_entity.inc
@@ -81,7 +81,14 @@ class SearchApiEntityDataSourceController extends SearchApiAbstractDataSourceCon
    * {@inheritdoc}
    */
   public function loadItems(array $ids) {
-    $items = entity_load($this->entityType, $ids);
+    // Cron might run on a different server, with a shared memcache server. If
+    // this is the case, we have to manually reset cache here, to make sure we
+    // get fresh results from database. If we do not do this, the process
+    // marking the node as indexed might not have cleared the item from memcache
+    // yet.
+    // The variable 'search_api_reset_entity_cache' denotes whether or not
+    // cache should be reset.
+    $items = entity_load($this->entityType, $ids, array(), variable_get('search_api_reset_entity_cache', FALSE));
     // If some items couldn't be loaded, remove them from tracking.
     if (count($items) != count($ids)) {
       $ids = array_flip($ids);
