summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-01 15:37:22 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-01 15:43:38 +0200
commitd01cfde98229c6d1bd14feefd889205027920d14 (patch)
treeefda9051a56382a5cb2313d360e9fde2cfcbb35f /settings/ajax
parent0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d (diff)
downloadnextcloud-server-d01cfde98229c6d1bd14feefd889205027920d14.tar.gz
nextcloud-server-d01cfde98229c6d1bd14feefd889205027920d14.zip
Correctly purge the cache when an app is disabled via cli
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/disableapp.php4
-rw-r--r--settings/ajax/enableapp.php3
2 files changed, 0 insertions, 7 deletions
diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php
index cc02203b4a3..f99969d91a4 100644
--- a/settings/ajax/disableapp.php
+++ b/settings/ajax/disableapp.php
@@ -31,9 +31,5 @@ if (!array_key_exists('appid', $_POST)) {
$appId = (string)$_POST['appid'];
$appId = OC_App::cleanAppId($appId);
-// FIXME: Clear the cache - move that into some sane helper method
-\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-0');
-\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-1');
-
OC_App::disable($appId);
OC_JSON::success();
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index aa688c4964c..b63bce76d92 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -30,9 +30,6 @@ $groups = isset($_POST['groups']) ? (array)$_POST['groups'] : null;
try {
OC_App::enable(OC_App::cleanAppId((string)$_POST['appid']), $groups);
- // FIXME: Clear the cache - move that into some sane helper method
- \OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-0');
- \OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-1');
OC_JSON::success();
} catch (Exception $e) {
OC_Log::write('core', $e->getMessage(), OC_Log::ERROR);