Commit 6ea9613f authored by Tino Goratsch's avatar Tino Goratsch

purge the uploads/assets dir when switching the theme

parent 9e3f2ff0
......@@ -62,7 +62,7 @@ class Purge
if (is_dir($path)) {
static::purgeCurrentDirectory($path, $cacheId);
if (empty($cacheId)) {
@rmdir($directory);
@rmdir($path);
}
} elseif (empty($cacheId) || strpos($dirContent, $cacheId) !== false) {
@unlink($path);
......
......@@ -66,11 +66,11 @@ class Designs extends Core\Controller\AbstractAdminAction
) {
$bool = $this->config->saveSettings(['design' => $design], Schema::MODULE_NAME);
// Template Cache leeren
Core\Cache\Purge::doPurge([
$this->appPath->getCacheDir() . 'tpl_compiled',
$this->appPath->getCacheDir() . 'tpl_cached',
$this->appPath->getCacheDir() . 'http'
$this->appPath->getCacheDir() . 'http',
$this->appPath->getUploadsDir() . 'assets'
]);
}
......
......@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- fixed the pictures count of the gallery data grid
- when switching the design, the uploads/assets folder is now purged to prevent a corrupted layout after the page reload
## [4.3.6] - 2016-11-03
### Added
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment