From 1b2fd01535f8e9ffe2562f9b98a58442071450ef Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 19 Apr 2020 19:24:23 +0200 Subject: [PATCH] =?UTF-8?q?Effacer=20le=20cache=20au=20changement=20de=20d?= =?UTF-8?q?onn=C3=A9es=20du=20th=C3=A8me.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core.php b/core/core.php index e2db86ca..091dad31 100755 --- a/core/core.php +++ b/core/core.php @@ -1406,6 +1406,12 @@ class core extends common { } // Enregistre la personnalisation file_put_contents(self::DATA_DIR.'theme.css', $css); + // Effacer le cache pour afin de tenir compte de la couleur de fond TinyMCE + header("Expires: Tue, 01 Jan 2000 00:00:00 GMT"); + header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); + header("Cache-Control: post-check=0, pre-check=0", false); + header("Pragma: no-cache"); } } /**