From ea52e71cae19a4f91b3e7763ff3c68f5137c0540 Mon Sep 17 00:00:00 2001 From: ylecollen Date: Wed, 21 Jan 2015 14:11:58 +0100 Subject: [PATCH] The clear cache button did not recompute the true cache size. --- matrixConsole/API/MediaManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrixConsole/API/MediaManager.m b/matrixConsole/API/MediaManager.m index 2e9991c05..07c12b61c 100644 --- a/matrixConsole/API/MediaManager.m +++ b/matrixConsole/API/MediaManager.m @@ -384,6 +384,8 @@ static NSMutableDictionary* uploadTableById = nil; } mediaCachePath = nil; + // force to recompute the cache size at next cacheSize call + storageCacheSize = 0; } + (NSString*)getCachePath {