diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index 9f69b17b5e..afe46c4dc2 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -771,6 +771,11 @@ class Application extends SilexApplication return $path; }); + $this['cache.paths'] = function (Application $app) { + return new \ArrayObject([ + $app['cache.path'], + ]); + }; // log path $this['log.path'] = $this->share(function() { diff --git a/lib/classes/module/console/systemClearCache.php b/lib/classes/module/console/systemClearCache.php index 01662d796a..9624294d8e 100644 --- a/lib/classes/module/console/systemClearCache.php +++ b/lib/classes/module/console/systemClearCache.php @@ -31,7 +31,7 @@ class module_console_systemClearCache extends Command { $finder = new Finder(); - $in = $this->container['cache.path']; + $in = $this->container['cache.paths']->toArray(); $finder ->exclude('.git') ->exclude('.svn')