mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-23 13:59:32 +00:00
(fix) check cache before using it (fixes #3988)
This commit is contained in:
@@ -447,7 +447,9 @@ static NSArray *childRecordFields = nil;
|
||||
cache = [SOGoCache sharedCache];
|
||||
record = [[cache valueForKey: _path] objectFromJSONString];
|
||||
|
||||
if (!record)
|
||||
// We check if we got a cache miss or a potentially bogus
|
||||
// entry from the cache
|
||||
if (!record || ![record objectForKey: @"c_folder_type"])
|
||||
{
|
||||
record = [[self folderManager] recordAtPath: _path];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user