我目前正在编辑我的portal_normal.vm (server/tomcat/webapps/mytheme-theme/templates) 测试我是否可以在文件上写入并在我的浏览器上看到它。我尝试添加测试注释“<!-- test -->”只是为了看看我是否真的可以在文件上写。所以我刷新了文件,希望我能看到我添加的评论,但我们没有。于是我继续刷新(ctrl+r),\查看源代码将近二十分钟。过了一会儿,当我再次尝试查看它时,它反映在我的源代码中。所以我认为它是由 Liferay 或我的浏览器缓存的。
所以我尝试调整评论添加版本(“<!-- test v2 -->”),希望看到变化。我在另一个浏览器上检查了它,评论没有更新或包含我添加的版本。所以我认为 Liferay 应对这个问题负责。
这是我的portal-ext.properties包含的内容:
auth.token.check.enabled=false
# Database settings
jdbc.default.jndi.name=jdbc/LiferayPool
#For removing captch
captcha.check.portal.create_account=false
session.enable.phishing.protection=false
default.regular.theme.id=my_site_WAR_my_theme
#Delete cookies while deleting session
session.enable.persistent.cookies=false
#redirecting null problem.
redirect.url.security.mode=mysite.com
journal.template.velocity.restricted.variables=
admin.email.from.name=Market.Travel Team
admin.email.from.address=admin@mysite.com
# Added because of the Error - No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
hibernate.current_session_context_class=thread
session.enable.url.with.session.id=false
和我的portal-developer.properties
theme.css.fast.load=false
theme.images.fast.load=false
javascript.fast.load=true
javascript.log.enabled=true
layout.template.cache.enabled=false
browser.launcher.url=
combo.check.timestamp=true
freemarker.engine.cache.storage=soft:1
freemarker.engine.modification.check.interval=0
openoffice.cache.enabled=false
velocity.engine.resource.manager.cache.enabled=false
com.liferay.portal.servlet.filters.cache.CacheFilter=false
com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true
另外:当我尝试编辑 css 文件时,我可以快速看到更改。只需重新加载更改就会出现。我认为只是在我的速度模板中需要一些时间或者有问题。
Liferay 版本: Liferay Portal Community Edition 6.0.6 CE
谢谢你!