From 1f89d5555fd95703cc44555d7ec738287c759168 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 23 Oct 2012 16:17:44 +0000 Subject: [PATCH] //small fix after upgrade now we clear cache --- admin-dev/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/admin-dev/index.php b/admin-dev/index.php index b05f40c13..0f92fbc54 100644 --- a/admin-dev/index.php +++ b/admin-dev/index.php @@ -31,6 +31,14 @@ define('_PS_ADMIN_DIR_', getcwd()); require(dirname(__FILE__).'/../config/config.inc.php'); require(dirname(__FILE__).'/functions.php'); +//small test to clear cache after upgrade +if (Configuration::get('PS_UPGRADE_CLEAR_CACHE')) +{ + header('Cache-Control: max-age=0, must-revalidate'); + header('Expires: Mon, 06 Jun 1985 06:06:00 GMT+1'); + Configuration::updateValue('PS_UPGRADE_CLEAR_CACHE', 0); +} + // For retrocompatibility with "tab" parameter if (!isset($_GET['controller']) && isset($_GET['tab'])) $_GET['controller'] = strtolower($_GET['tab']);