Chat on WhatsApp
TAG

#Deployment

1 article
Performance Magento Performance Magento `setup:static-content:deploy -f` Reusing Old Cache — The Wipe Sequence

Magento `setup:static-content:deploy -f` Reusing Old Cache — The Wipe Sequence

You edit a LESS file, push it to production, run `bin/magento setup:static-content:deploy -f en_US`, and the old CSS still serves. The deploy reports success in under two seconds. The browser still shows the old rules. The issue is not Cloudflare, not OPcache, not the browser — it is Magento reusing the preprocessor output cached under `var/view_preprocessed`. The `-f` flag clears `pub/static` but does not always touch `view_preprocessed`. This is the exact wipe sequence we run on every Magento 2.4.4 — 2.4.9 Hyvä store to force a true LESS-to-CSS recompile, why the order of operations matters, and the one-liner that catches the nested `_module.less` reused-output trap.

Kishan Savaliya 9 min read