Effacer le cache au changement de données du thème.

This commit is contained in:
Fred Tempez 2020-04-19 19:24:23 +02:00
parent 9b4688c1e7
commit 1b2fd01535
1 changed files with 6 additions and 0 deletions

View File

@ -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");
}
}
/**