Commit 4e2d4031aeac73a6c7f2b52a504cf6e100804f40
1 parent
921c13dd
Disable caching on upgrade items.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5444 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/upgrades/UpgradeItems.inc.php
| ... | ... | @@ -134,7 +134,11 @@ class UpgradeItem { |
| 134 | 134 | if (PEAR::isError($res)) { |
| 135 | 135 | return $res; |
| 136 | 136 | } |
| 137 | + $oCache =& KTCache::getSingleton(); | |
| 138 | + $save = $oCache->bEnabled; | |
| 139 | + $oCache->bEnabled = false; | |
| 137 | 140 | $res = $this->_performUpgrade(); |
| 141 | + $oCache->bEnabled = $save; | |
| 138 | 142 | if (PEAR::isError($res)) { |
| 139 | 143 | $this->_recordUpgrade(false); |
| 140 | 144 | return $res; | ... | ... |