diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-02 09:26:15 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-02 09:26:15 +0200 |
commit | 9e5b319ed43909c54093c971ac4f9df2b070a17b (patch) | |
tree | ec3f589db648c18521a408396fe72dbe77061a80 /settings | |
parent | cc96105ebec4d60c91032c1fb5a5e03050a77166 (diff) | |
parent | 696c750cfe4df66d3535f8696636113fd3cbd584 (diff) | |
download | nextcloud-server-9e5b319ed43909c54093c971ac4f9df2b070a17b.tar.gz nextcloud-server-9e5b319ed43909c54093c971ac4f9df2b070a17b.zip |
Merge pull request #15362 from owncloud/issue/15359-purge-memcache-console-app-disable
Correctly purge the cache when an app is disabled via cli
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/disableapp.php | 4 | ||||
-rw-r--r-- | settings/ajax/enableapp.php | 3 |
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); |