Commit 9c147a0a7d18f583c8dfdda90fa3e3261a1b75c5

Authored by nbm
1 parent 9eeaf9c1

Disable caching on upgrade items.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5444 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/upgrades/UpgradeItems.inc.php
@@ -134,7 +134,11 @@ class UpgradeItem { @@ -134,7 +134,11 @@ class UpgradeItem {
134 if (PEAR::isError($res)) { 134 if (PEAR::isError($res)) {
135 return $res; 135 return $res;
136 } 136 }
  137 + $oCache =& KTCache::getSingleton();
  138 + $save = $oCache->bEnabled;
  139 + $oCache->bEnabled = false;
137 $res = $this->_performUpgrade(); 140 $res = $this->_performUpgrade();
  141 + $oCache->bEnabled = $save;
138 if (PEAR::isError($res)) { 142 if (PEAR::isError($res)) {
139 $this->_recordUpgrade(false); 143 $this->_recordUpgrade(false);
140 return $res; 144 return $res;