dev: optimize cache clear, textonly mode support