diff --git a/system/src/Grav/Console/ClearCacheCommand.php b/system/src/Grav/Console/ClearCacheCommand.php
index 997645ccd..f2eab71cc 100644
--- a/system/src/Grav/Console/ClearCacheCommand.php
+++ b/system/src/Grav/Console/ClearCacheCommand.php
@@ -12,7 +12,8 @@ use \Symfony\Component\Yaml\Yaml;
class ClearCacheCommand extends Command {
protected $paths_to_remove = [
- 'cache'
+ 'cache',
+ 'images'
];
protected function configure() {
@@ -44,6 +45,8 @@ class ClearCacheCommand extends Command {
$output->writeln('Clearing cache');
$output->writeln('');
+ $user_config = USER_DIR . 'config/system.yaml';
+
$anything = false;
foreach($this->paths_to_remove as $path) {
@@ -57,6 +60,13 @@ class ClearCacheCommand extends Command {
if ($anything) $output->writeln('Cleared: ' . $path . '*');
}
+ if (file_exists($user_config)) {
+ touch ($user_config);
+ $output->writeln('');
+ $output->writeln('Touched: ' . $user_config);
+ $output->writeln('');
+ }
+
if (!$anything) {
$output->writeln('Nothing to clear...');
$output->writeln('');