forked from extern/egroupware
Backport commit r47985 committed by Nathan Gray.
- Use cache callback to unlock folder tree immediately when the cache is used.
This commit is contained in:
parent
a3d9df3d53
commit
b4f31bdfd2
@ -69,7 +69,17 @@ app.classes.mail = AppJS.extend(
|
|||||||
// Turn on client side, persistent cache
|
// Turn on client side, persistent cache
|
||||||
// egw.data system runs encapsulated below etemplate, so this must be
|
// egw.data system runs encapsulated below etemplate, so this must be
|
||||||
// done before the nextmatch is created.
|
// 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
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user