From b4f31bdfd2052a823828711433f37359c46c3d91 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 6 Aug 2014 11:13:32 +0000 Subject: [PATCH] Backport commit r47985 committed by Nathan Gray. - Use cache callback to unlock folder tree immediately when the cache is used. --- mail/js/app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 15f068c5f3..0fd4b49524 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -69,7 +69,17 @@ app.classes.mail = AppJS.extend( // Turn on client side, persistent cache // egw.data system runs encapsulated below etemplate, so this must be // done before the nextmatch is created. - this.egw.dataCacheRegister('mail',this.nm_cache, this); + this.egw.dataCacheRegister('mail', + // Called to determine cache key + this.nm_cache, + // Called whenever cache is used + // TODO: Change this as needed + function(server_query) + { + if(!server_query) this.unlock_tree(); + }, + this + ); }, /**