I am developing a portlet for Liferay Portal.
I have disabled CSS and JavaScript caching by using these codes in portal-developer.properties file:
theme.css.fast.load=false theme.images.fast.load=false javascript.fast.load=false javascript.log.enabled=true layout.template.cache.enabled=false last.modified.check=false velocity.engine.resource.manager.cache.enabled=false com.liferay.portal.servlet.filters.cache.CacheFilter=false com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter=false
But I don't know how to disable portlet caching.
When I update view.jsp file in my portlet directory I have to restart Tomcat to see changes.
With the latest version, Liferay 6.2 you can turn on Development Mode.
Reference: https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/using-developer-mode-with-themes-liferay-portal-6-2-dev-guide-09-en
I've had such problems with some misaligned clocks: When you edit the jsp through a network mount and your computer believes it's 10:00 while the server believes, that it's already 10:05, this is what might happen:
Also, I believe to remember some "Context" configuration enabling to change jsp translation behaviour. Are you working on an unchanged liferay/tomcat bundle? Does the same happen when you're working on just one machine? Does the same thing happen when you take a new bundle, unzip and retry?
I found the solution use MultiVMPoolUtil.clear();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With