Skip to content

Commit

Permalink
Web application upgrader: Clear Smarty's compiled and cache directori…
Browse files Browse the repository at this point in the history
…es upon successful upgrade
  • Loading branch information
ginatrapani committed May 4, 2012
1 parent 8a3c2a2 commit 5cf88df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/_lib/controller/class.UpgradeApplicationController.php
Expand Up @@ -51,6 +51,9 @@ public function authControl() {
$this->addErrorMessage($e->getMessage(), null, true);
}
} else if (isset($_GET['ran_update'])) {
//Clear Smarty's compiled templates and cache to start fresh with newly upgraded app
$this->view_mgr->clear_compiled_tpl();
$this->view_mgr->clear_all_cache();
$this->addToView('updated',true);
} else {
$verify_updatable = true;
Expand Down

0 comments on commit 5cf88df

Please sign in to comment.