Issue with Custom Theme Not Applying Changes in Shopware 6

Hello

I’m facing an issue with Shopware 6 where changes made to my custom theme are not reflecting on the storefront. I have followed the standard process of modifying the theme files; clearing the cache & even running bin/console theme:compile, but the changes still do not appear on the frontend. :innocent:

Interestingly, the modifications sometimes show up after a long delay or only when I force-refresh the browser (Ctrl + Shift + R).

I have also tried disabling and re-enabling the theme, checking the var/cache folder for issues, and ensuring that the correct theme is assigned in the Sales Channel settings. :upside_down_face:

However, the problem persists, especially with CSS and Twig template modifications. Could this be related to caching issues, CDN interference, or Shopware’s built-in asset handling? :thinking: Has anyone else faced a similar issue where theme updates don’t apply immediately? :thinking: Checked https://developer.shopware.com/docs/guides/plugins/themes/create-a-theme.html-java guide for reference .

Any insights or troubleshooting steps would be greatly appreciated.

Thank you !! :slightly_smiling_face:

theme:compile is for SCSS changes only.
cache:clear for twig changes.

Sounds like OpCache is caching the files. Try to clear that, too.