anchor.diff:      timer:sleep(1000), % Posthook is async
       ?assertMatch(ok, rpc:call(Worker1, caches_controller, wait_for_cache_dump, [])),
       CorruptedUuid = caches_controller:get_cache_uuid(CorruptedKey, some_record),
  -    ?assertMatch(ok, ?call_store(Worker2, cache_controller, delete, [CorruptedUuid])),
  +    ?assertMatch(ok, ?call_store(Worker2, cache_controller, delete, [?GLOBAL_ONLY_LEVEL, CorruptedUuid])),
   
       ?assertMatch(ok, ?call_store(Worker1, caches_controller, delete_old_keys, [globally_cached, 1])),
  -    timer:sleep(1000), % Posthook is async
       ?assertMatch({ok, true}, ?call_store(Worker2, exists, [global_only, some_record, CorruptedKey])),
       ?assertMatch({ok, true}, ?call_store(Worker2, exists, [disk_only, some_record, CorruptedKey])),
   
       ?assertMatch(ok, ?call_store(Worker1, caches_controller, delete_old_keys, [globally_cached, 0])),
  -    timer:sleep(1000), % Posthook is async
       ?assertMatch({ok, false}, ?call_store(Worker2, exists, [global_only, some_record, CorruptedKey])),
       ?assertMatch({ok, true}, ?call_store(Worker2, exists, [disk_only, some_record, CorruptedKey])),
       ok.
  
positive.code: 
      lists:foreach(fun({K2, _}) ->
          Uuid2 = caches_controller:get_cache_uuid(K2, some_record),
          ?assertMatch(true, ?call_store(Worker2, cache_controller, exists, [Uuid2])),
          ?assertMatch({ok, true}, ?call_store(Worker2, exists, [global_only, some_record, K2])),
          ?assertMatch({ok, true}, ?call_store(Worker2, exists, [disk_only, some_record, K2]))
      end, R),
  
negative.code:             (Record) ->
                  Record#cache_controller{timestamp = to_timestamp(from_timestamp(os:timestamp()) - T - timer:minutes(5))}
          end,
          ?assertMatch({ok, _}, ?call_store(Worker1, cache_controller, update, [?GLOBAL_ONLY_LEVEL, Uuid, UpdateFun]))
      end, KeysWithTimes),
  
      ?assertMatch(ok, ?call_store(Worker1, caches_controller, delete_old_keys, [globally_cached, TimeWindow])),
  
      Uuid = caches_controller:get_cache_uuid(K, some_record),
      ?assertMatch(false, ?call_store(Worker2, cache_controller, exists, [?GLOBAL_ONLY_LEVEL, Uuid])),
      ?assertMatch({ok, false}, ?call_store(Worker2, exists, [global_only, some_record, K])),
      ?assertMatch({ok, true}, ?call_store(Worker2, exists, [disk_only, some_record, K])),
      ?assertMatch({ok, _}, ?call_store(Worker1, some_record, get, [K])),
  