diff options
| author | Evan Winslow <evan@elgg.org> | 2012-10-09 20:57:20 -0700 | 
|---|---|---|
| committer | Evan Winslow <evan@elgg.org> | 2012-10-09 20:57:20 -0700 | 
| commit | 7239da3fb83bbfdd414f96339ef33fee4d68554e (patch) | |
| tree | 8a0be74b874fd142b81a44e935e36a5260093390 /engine/classes/ElggPlugin.php | |
| parent | ca0f22f098bdac6982f30156884cf9f4c498c689 (diff) | |
| parent | 61274b8cec92ee86dec24c99fd6ef180c1681ab2 (diff) | |
| download | elgg-7239da3fb83bbfdd414f96339ef33fee4d68554e.tar.gz elgg-7239da3fb83bbfdd414f96339ef33fee4d68554e.tar.bz2 | |
Merge pull request #377 from mrclay/4290-1.8
Fixes #4290: adds preloading volatile metadata cache and unit tests
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;  	} | 
