Fixes clear-cache command.