diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-15 20:14:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-15 20:14:11 +0200 |
commit | 72464f1ce49b16049e0c82aedf2f740b50ec1991 (patch) | |
tree | 9b54b530efba0852cd6857b1920821222d45f0b6 /lib/private/Repair | |
parent | e577ef87280788b788f6c38daf8e38043bbfbc8c (diff) | |
download | nextcloud-server-72464f1ce49b16049e0c82aedf2f740b50ec1991.tar.gz nextcloud-server-72464f1ce49b16049e0c82aedf2f740b50ec1991.zip |
Remove asset pipelin
Fixes #215
The asset pipeline has shown to do more harm than good. Some apps fail
hard with it. Also it makes sure that you download a huge file on each
unvisited page.
Diffstat (limited to 'lib/private/Repair')
-rw-r--r-- | lib/private/Repair/AssetCache.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Repair/AssetCache.php b/lib/private/Repair/AssetCache.php index e4787bab95f..84c22d4d8a2 100644 --- a/lib/private/Repair/AssetCache.php +++ b/lib/private/Repair/AssetCache.php @@ -29,14 +29,10 @@ use OCP\Migration\IRepairStep; class AssetCache implements IRepairStep { public function getName() { - return 'Clear asset cache after upgrade'; + return 'Remove asset cache'; } public function run(IOutput $output) { - if (!\OC_Template::isAssetPipelineEnabled()) { - $output->info('Asset pipeline disabled -> nothing to do'); - return; - } $assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT) . '/assets'; \OC_Helper::rmdirr($assetDir, false); $output->info('Asset cache cleared.'); |