PLT-4853 adding purge cache button to the UI. (#4811)

* PLT_4853 adding purge cache button to the UI.

* Fixing loc stuff
Этот коммит содержится в:
Corey Hulen
2016-12-21 14:31:24 -08:00
коммит произвёл enahum
родитель 56dc863de1
Коммит 64a86bd32f
4 изменённых файлов: 127 добавлений и 0 удалений

Просмотреть файл

@@ -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`).