From 140b1ef1a7b110178aebe17334353fa803d2ede7 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 31 Oct 2019 14:20:01 -0400 Subject: #857 flush cache when switching servers --- www/js/NVR.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/NVR.js') diff --git a/www/js/NVR.js b/www/js/NVR.js index eb3ba08e..0d1a9bd2 100644 --- a/www/js/NVR.js +++ b/www/js/NVR.js @@ -21,7 +21,7 @@ angular.module('zmApp.controllers') DO NOT TOUCH zmAppVersion It is changed by sync_version.sh */ - var zmAppVersion = "1.3.079"; + var zmAppVersion = "1.3.080"; var zmAPIVersion = null; var isBackground = false; var justResumed = false; @@ -349,6 +349,7 @@ angular.module('zmApp.controllers') } function delete_all_caches() { + debug ('CACHE: Flushing all network API caches...'); return localforage.removeItem('cached_monitors') .then ( function () {return localforage.removeItem('cached_api_version');}) .then ( function () {return localforage.removeItem('cached_multi_servers');}) -- cgit v1.2.3