Skip to content

Commit

Permalink
Dev: flush OP cache after update
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Apr 27, 2016
1 parent d63b357 commit f1d0555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/update.php
Expand Up @@ -293,7 +293,8 @@ function step4()
Yii::app()->session['security_update'] = null;
$today = new DateTime("now");
Yii::app()->session['next_update_check'] = $today->add(new DateInterval('PT6H'));

Yii::app()->cache->flush();
opcache_reset();
// TODO : aData should contains information about each step
return $this->controller->renderPartial('update/updater/steps/_final', array('destinationBuild'=>$destinationBuild), false, false);
}
Expand Down
2 changes: 2 additions & 0 deletions application/views/admin/update/updater/steps/_final.php
Expand Up @@ -3,6 +3,8 @@
* This view display the result of the update
* @var int $destinationBuild the destination build
*/
Yii::app()->cache->flush();
opcache_reset();
?>

<h2 class="maintitle"><?php eT('Update complete!'); ?></h2>
Expand Down

0 comments on commit f1d0555

Please sign in to comment.