ffc32d1 Fix possible race condition when invalidating cache

2 files Authored by lholecek 5 years ago, Committed by Lukas Holecek 5 years ago,
    Fix possible race condition when invalidating cache