diff options
| author | Steve Clay <steve@mrclay.org> | 2012-06-01 17:02:18 -0400 | 
|---|---|---|
| committer | Steve Clay <steve@mrclay.org> | 2012-09-03 22:26:27 -0400 | 
| commit | 61274b8cec92ee86dec24c99fd6ef180c1681ab2 (patch) | |
| tree | ce4c16e9ac2ee8fc78d78df59b5f8701082ad54f /engine/classes/ElggPlugin.php | |
| parent | 9ccbd106a87a1742a61cc4df0e9ead921046772a (diff) | |
| download | elgg-61274b8cec92ee86dec24c99fd6ef180c1681ab2.tar.gz elgg-61274b8cec92ee86dec24c99fd6ef180c1681ab2.tar.bz2  | |
Fixes #4290: adds volatile metadata cache, unit tests, and pre-loading for fetched entities
Diffstat (limited to 'engine/classes/ElggPlugin.php')
| -rw-r--r-- | engine/classes/ElggPlugin.php | 6 | 
1 files changed, 1 insertions, 5 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php index 8c9093834..3e43c8e81 100644 --- a/engine/classes/ElggPlugin.php +++ b/engine/classes/ElggPlugin.php @@ -101,7 +101,6 @@ class ElggPlugin extends ElggObject {  			$missing_attributes = array_diff_key($expected_attributes, $row);  			if ($missing_attributes) {  				$needs_loaded = true; -				$old_guid = $guid;  				$guid = $row['guid'];  			} else {  				$this->attributes = $row; @@ -132,10 +131,7 @@ class ElggPlugin extends ElggObject {  		// guid needs to be an int  http://trac.elgg.org/ticket/4111  		$this->attributes['guid'] = (int)$this->attributes['guid']; -		// cache the entity -		if ($this->attributes['guid']) { -			cache_entity($this); -		} +		cache_entity($this);  		return true;  	}  | 
