summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-26 17:46:42 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-03 15:21:51 +0100
commit7381a81d3041a3460617623028d6e8cfb5391649 (patch)
tree5bee0985b80aa30bf7d925cbee589e8da74d19fc /lib/private/Repair.php
parent79e81c15c5beb4174922921083f0e838de9a3bfc (diff)
downloadnextcloud-server-7381a81d3041a3460617623028d6e8cfb5391649.tar.gz
nextcloud-server-7381a81d3041a3460617623028d6e8cfb5391649.zip
Add repair step to clear frontend related caches
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php
index 2b671662f99..d787a1c802b 100644
--- a/lib/private/Repair.php
+++ b/lib/private/Repair.php
@@ -33,6 +33,7 @@ namespace OC;
use OC\App\AppStore\Bundles\BundleFetcher;
use OC\Files\AppData\Factory;
use OC\Repair\CleanTags;
+use OC\Repair\ClearFrontendCaches;
use OC\Repair\Collation;
use OC\Repair\MoveUpdaterStepFile;
use OC\Repair\NC11\FixMountStorages;
@@ -45,6 +46,8 @@ use OC\Repair\NC13\RepairInvalidPaths;
use OC\Repair\SqliteAutoincrement;
use OC\Repair\RepairMimeTypes;
use OC\Repair\RepairInvalidShares;
+use OC\Template\JSCombiner;
+use OC\Template\SCSSCacher;
use OCP\AppFramework\QueryException;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
@@ -131,6 +134,7 @@ class Repair implements IOutput{
new FixMountStorages(\OC::$server->getDatabaseConnection()),
new RepairInvalidPaths(\OC::$server->getDatabaseConnection(), \OC::$server->getConfig()),
new AddLogRotateJob(\OC::$server->getJobList()),
+ new ClearFrontendCaches(\OC::$server->getMemCacheFactory(), \OC::$server->query(SCSSCacher::class), \OC::$server->query(JSCombiner::class))
];
}