diff options
author | Corey Hulen <corey@hulen.com> | 2016-12-21 14:31:24 -0800 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-21 19:31:24 -0300 |
commit | 64a86bd32f82b8c9c943c38949f6f7e105bcd54e (patch) | |
tree | 5e69090792d229cdf2ba2379e5970f92d2168fdd /webapp/client | |
parent | 56dc863de14da2c5d6b897352e91384a91a40f94 (diff) | |
download | chat-64a86bd32f82b8c9c943c38949f6f7e105bcd54e.tar.gz chat-64a86bd32f82b8c9c943c38949f6f7e105bcd54e.tar.bz2 chat-64a86bd32f82b8c9c943c38949f6f7e105bcd54e.zip |
PLT-4853 adding purge cache button to the UI. (#4811)
* PLT_4853 adding purge cache button to the UI.
* Fixing loc stuff
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index c5743ae7b..782b74571 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -265,6 +265,15 @@ export default class Client { end(this.handleResponse.bind(this, 'reloadConfig', success, error)); } + invalidateAllCaches(success, error) { + return request. + get(`${this.getAdminRoute()}/invalidate_all_caches`). + set(this.defaultHeaders). + type('application/json'). + accept('application/json'). + end(this.handleResponse.bind(this, 'invalidate_all_caches', success, error)); + } + recycleDatabaseConnection(success, error) { return request. get(`${this.getAdminRoute()}/recycle_db_conn`). |