bug: clear cache after discard