Skip to content
Blog tag

#static-content:deploy

Magento 2 & Hyvä articles tagged “static-content:deploy”: hands-on tutorials, fixes, and guides from Kishan Savaliya, an Adobe-certified Magento developer.

2 articles RSS feed

Related tags: #Magento Performance #Core Web Vitals #Lighthouse #Magento 2 #Magento 2.4.9 #Indexing

Performance topic art

Posts tagged static-content:deploy

Page 1 of 1, newest first
  • Performance

    Magento static-content:deploy -f reusing old cache: the fix

    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.

Stuck on this? Share the issue or question Ask about your store