Commit e240b829c0d693c4b0233961cebd8c0aa9eeb74a
1 parent
16c476d3
KTS-3944 - After an upgrade the proxy directory and cache will now be cleared, s…
…o they can be regenerated with the new code. "CLONE -"Add a shortcut" creates a copy of the document, it seems, rather than a link(SUP-1194)" Committed by: Megan Watson Reviewed by: Donald Jackson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/branches/RB_3.5.4a@9610 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
0 deletions
setup/upgrade.php
| ... | ... | @@ -155,6 +155,13 @@ function performPostUpgradeActions() { |
| 155 | 155 | $oKTConfig = new KTConfig(); |
| 156 | 156 | $oKTConfig->clearCache(); |
| 157 | 157 | |
| 158 | + // Clear out all caches and proxies - they need to be regenerated with the new code | |
| 159 | + $proxyDir = $default->proxyCacheDirectory; | |
| 160 | + KTUtil::deleteDirectory($proxyDir); | |
| 161 | + | |
| 162 | + $oKTCache = new KTCache(); | |
| 163 | + $oKTCache->deleteAllCaches(); | |
| 164 | + | |
| 158 | 165 | // Clean out the plugin_helper table |
| 159 | 166 | $sql = "DELETE FROM plugin_helper"; |
| 160 | 167 | $res = DBUtil::runQuery($sql); | ... | ... |