[FrameworkBundle] Refactored clear cache command