aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index f838308f4..7ade3b475 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -195,8 +195,8 @@
$guid = (int)$guid;
- /*$row = retrieve_cached_entity_row($guid);
- if ($row)
+ $row = retrieve_cached_entity_row($guid);
+ if ($row->isFullyLoaded())
{
// We have already cached this object, so retrieve its value from the cache
if ($CONFIG->debug)
@@ -205,13 +205,13 @@
return $row;
}
else
- {*/
+ {
// Object not cached, load it.
if ($CONFIG->debug)
error_log("** Sub part of GUID:$guid loaded from DB");
return get_data_row("SELECT * from {$CONFIG->dbprefix}objects_entity where guid=$guid");
- //}
+ }
}
/**