Force to clean Liferay 7 Theme Cache / Theme reload

thumbnail
Marco Endres, modified 7 Years ago. Regular Member Posts: 112 Join Date: 8/22/12 Recent Posts

Hey guys

I have a problem with my test- and prod-environment. When I do 2 theme-deployments with little time apart, the second theme gets 'ignored' for the cache creation.  The deployed CSS under:

/o/my-theme/css/main.css

is the new one and is right (2. Deployment), but the one that gets loaded is this one:

/o/my-theme/css/main.css?browserId=other&themeId=mytheme_WAR_mytheme&minifierType=css&languageId=de_DE&b=7004&t=1530028600363

is the cached one( 1. Deployment) and doesn't get refreshed. When I now switch the language to one that use rarely it builds the cache file corretly with the newest changes.

I have already tried all the options in the serveradministration. It's also not the browser-cache because my colleagues see the same.

When i wait some time and deploy again, it works. But i never know how long I need to wait. I also debugged trough the filters, but I didn't find the right spot so far. Appreciate every hint you have for me.

I use the Liferay 7 CE GA 5 build on a Centos 7.

Marco