fix(flag): incorrect behavior for deprected flag --clear-cache
[backport: release/v0.54]
#7285
+1
−0
--clear-cache
[backport: release/v0.54]
#7285