summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-12-21 14:31:24 -0800
committerenahum <nahumhbl@gmail.com>2016-12-21 19:31:24 -0300
commit64a86bd32f82b8c9c943c38949f6f7e105bcd54e (patch)
tree5e69090792d229cdf2ba2379e5970f92d2168fdd /webapp/client/client.jsx
parent56dc863de14da2c5d6b897352e91384a91a40f94 (diff)
downloadchat-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/client.jsx')
-rw-r--r--webapp/client/client.jsx9
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`).