aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 15:03:47 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 15:03:47 +0000
commitc5510ff302a6899691197e88dc9db08734e4d004 (patch)
tree3d07b834f2623c303692b25f0beeb89e95da0507 /engine/lib/objects.php
parent6f02fe750275a8c3c01b2d010e69c6a08fd9c5c1 (diff)
downloadelgg-c5510ff302a6899691197e88dc9db08734e4d004.tar.gz
elgg-c5510ff302a6899691197e88dc9db08734e4d004.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@834 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index a51665b5b..3c7448137 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -193,9 +193,25 @@
{
global $CONFIG;
- $guid = (int)$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 ($CONFIG->debug)
+ error_log("** Retrieving sub part of GUID:$guid from cache");
+
+ 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");
+ return get_data_row("SELECT * from {$CONFIG->dbprefix}objects_entity where guid=$guid");
+ //}
}
/**