summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-03 12:41:21 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-03 15:21:51 +0100
commitb87e5a0f2e158d7aad91ba8e58b246e3666f6cbf (patch)
treed3c06a29ae403ad2fc042c848931f32af77b8b16 /lib/private/Repair
parent5460166ff5440e9750870470afbd861c65b2b41e (diff)
downloadnextcloud-server-b87e5a0f2e158d7aad91ba8e58b246e3666f6cbf.tar.gz
nextcloud-server-b87e5a0f2e158d7aad91ba8e58b246e3666f6cbf.zip
Move depsCache clearing to SCSSCacher/JSCombiner
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/ClearFrontendCaches.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/private/Repair/ClearFrontendCaches.php b/lib/private/Repair/ClearFrontendCaches.php
index 8d109462f6a..0a92aa8d201 100644
--- a/lib/private/Repair/ClearFrontendCaches.php
+++ b/lib/private/Repair/ClearFrontendCaches.php
@@ -23,15 +23,11 @@
namespace OC\Repair;
-use OC\Core\Command\Maintenance\ClearCacheJSCSS;
use OC\Template\JSCombiner;
use OC\Template\SCSSCacher;
-use OCP\AppFramework\QueryException;
use OCP\ICacheFactory;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\BufferedOutput;
class ClearFrontendCaches implements IRepairStep {
@@ -59,17 +55,13 @@ class ClearFrontendCaches implements IRepairStep {
public function run(IOutput $output) {
try {
$c = $this->cacheFactory->createDistributed('imagePath');
- $c->clear('');
+ $c->clear();
$output->info('Image cache cleared');
$this->scssCacher->resetCache();
- $c = $this->cacheFactory->createDistributed('SCSS');
- $c->clear('');
$output->info('SCSS cache cleared');
$this->jsCombiner->resetCache();
- $c = $this->cacheFactory->createDistributed('JS');
- $c->clear('');
$output->info('JS cache cleared');
} catch (\Exception $e) {
$output->warning('Unable to clear the frontend cache');