CacheManager/FlushCaches, fix checkall function