Fixed flushing of caches with parameters