From 2964196b19aa16a7b90902673a0f9756925c93c1 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Tue, 30 Jan 2018 12:40:35 -0500 Subject: [PATCH] Fix and force cache reset --- includes/Jobs/EntitiesIndexJob.php | 2 +- tripal_elasticsearch.drush.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Jobs/EntitiesIndexJob.php b/includes/Jobs/EntitiesIndexJob.php index 9e5aba81..25df9464 100644 --- a/includes/Jobs/EntitiesIndexJob.php +++ b/includes/Jobs/EntitiesIndexJob.php @@ -127,7 +127,7 @@ protected function loadContent($records) { // Load priority list $priority = $this->getPriorityList($fields); - $entities = tripal_load_entity('TripalEntity', $ids, FALSE, $priority['ids']); + $entities = tripal_load_entity('TripalEntity', $ids, TRUE, $priority['ids']); foreach ($records as $record) { $this->total++; diff --git a/tripal_elasticsearch.drush.inc b/tripal_elasticsearch.drush.inc index 1d430bbe..c4c8dbad 100644 --- a/tripal_elasticsearch.drush.inc +++ b/tripal_elasticsearch.drush.inc @@ -58,7 +58,7 @@ function drush_tripal_elasticsearch_es_run_tests() { $memory_usage[$i][] = $mem; print "Before load memory Usage: " . number_format($mem) . " bytes\n"; print "Loading entities SELECT * FROM {" . $table . "} ORDER BY entity_id DESC OFFSET $i LIMIT 100\n"; - $entities = tripal_load_entity('TripalEntity', $entity_ids); + $entities = tripal_load_entity('TripalEntity', $entity_ids, TRUE); $mem = memory_get_usage(); $memory_usage[$i][] = $mem; print "After load memory Usage: " . number_format($mem) . " bytes\n";