Change model_cache::clear() API to clear everything. This prevents

old ORM relationships from hanging around, which was causing problems
when doing MPTT manipulations (resulting in incorrect permission
propagation-- very bad!)
This commit is contained in:
Bharat Mediratta
2009-07-17 12:51:27 -07:00
parent 8a6556b30b
commit cd907c2b42
6 changed files with 11 additions and 7 deletions
+1
View File
@@ -140,6 +140,7 @@ class Item_Model extends ORM_MPTT {
$original_parent = $this->parent();
parent::move_to($target, true);
model_cache::clear();
$this->relative_path_cache = null;
rename($original_path, $this->file_path());