From e240b829c0d693c4b0233961cebd8c0aa9eeb74a Mon Sep 17 00:00:00 2001 From: megan_w Date: Fri, 21 Nov 2008 10:19:56 +0000 Subject: [PATCH] KTS-3944 - After an upgrade the proxy directory and cache will now be cleared, so 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)" --- setup/upgrade.php | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/setup/upgrade.php b/setup/upgrade.php index ed83e2b..d2eefd4 100644 --- a/setup/upgrade.php +++ b/setup/upgrade.php @@ -155,6 +155,13 @@ function performPostUpgradeActions() { $oKTConfig = new KTConfig(); $oKTConfig->clearCache(); + // Clear out all caches and proxies - they need to be regenerated with the new code + $proxyDir = $default->proxyCacheDirectory; + KTUtil::deleteDirectory($proxyDir); + + $oKTCache = new KTCache(); + $oKTCache->deleteAllCaches(); + // Clean out the plugin_helper table $sql = "DELETE FROM plugin_helper"; $res = DBUtil::runQuery($sql); -- libgit2 0.21.4