diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 211fbc05c..373654431 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1479,27 +1479,9 @@ function get_entity_as_row($guid) { } $guid = (int) $guid; - - /*$row = retrieve_cached_entity_row($guid); - if ($row) - { - // We have already cached this object, so retrieve its value from the cache - if (isset($CONFIG->debug) && $CONFIG->debug) - error_log("** Retrieving GUID:$guid from cache"); - - return $row; - } - else - {*/ - // Object not cached, load it. - if (isset($CONFIG->debug) && $CONFIG->debug == true) { - error_log("** GUID:$guid loaded from DB"); - } - - $access = get_access_sql_suffix(); - - return get_data_row("SELECT * from {$CONFIG->dbprefix}entities where guid=$guid and $access"); - //} + $access = get_access_sql_suffix(); + + return get_data_row("SELECT * from {$CONFIG->dbprefix}entities where guid=$guid and $access"); } /** |