<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Database access: no caching in some entities</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=700272" />
  <subtitle>Database access: no caching in some entities</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=700272</id>
  <updated>2026-04-06T11:01:43Z</updated>
  <dc:date>2026-04-06T11:01:43Z</dc:date>
  <entry>
    <title>RE: Database access: no caching in some entitiesy do You set</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4301274" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4301274</id>
    <updated>2009-11-20T15:21:48Z</updated>
    <published>2009-11-20T15:21:48Z</published>
    <summary type="html">Hey,&lt;br /&gt;  Did you ever have any luck with this issue?  I&amp;#39;ve got an almost identical situation.  I&amp;#39;m on liferay 4.4.2 fwiw &lt;br /&gt;Thanks,&lt;br /&gt;Eric</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-11-20T15:21:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: CAS integrate with Liferay portal 5.2.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2449202" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2449202</id>
    <updated>2009-03-11T07:28:24Z</updated>
    <published>2009-03-11T07:28:24Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;I would propose to post this issue as a &amp;#34;brand new&amp;#34; thread...&lt;br /&gt;&lt;br /&gt;Unfortunatelly I do not have experiences with CAS so I cannot help You with some advice...&lt;br /&gt;&lt;br /&gt;good luck, Archie</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2009-03-11T07:28:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: How can i display only the latest version of article in Journal portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2449195" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2449195</id>
    <updated>2009-03-11T07:26:53Z</updated>
    <published>2009-03-11T07:26:53Z</published>
    <summary type="html">Hello, &lt;br /&gt;&lt;br /&gt;spontaneusly I would say, the simplest way is to expire all the úprevious versions of the article :-) But You probably know it - if You want the different behavior of the journal contant portlet than the default one, You have to possibly develop a new/different portlet or just to modify the functionality of the default one.&lt;br /&gt;&lt;br /&gt;cheers, Archie</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2009-03-11T07:26:53Z</dc:date>
  </entry>
  <entry>
    <title>CAS integrate with Liferay portal 5.2.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2186727" />
    <author>
      <name>Nagiy reddyy Yedulay</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2186727</id>
    <updated>2009-02-13T13:40:56Z</updated>
    <published>2009-02-13T13:40:56Z</published>
    <summary type="html">hai to everyone.&lt;br /&gt;&lt;br /&gt;i am trying to integrate CAS(Central Authentication Service) with Liferay portal 5.2.1. and i followed the below steps.&lt;br /&gt;&lt;br /&gt;i copied the &lt;strong&gt;cas-server-3.2.1&lt;/strong&gt; into Liferayportal/tomcat/webapps folder,and i placed &lt;strong&gt;casclient.jar &lt;/strong&gt;file in  Liferayportal/tomcat/webapps/root/WEB-INF/lib folder.&lt;br /&gt;&lt;br /&gt;then i generate the sslcertificate key using RSA Algorithm.&lt;br /&gt;&lt;br /&gt;i use the below commands.&lt;br /&gt;&lt;br /&gt;keytool -genkey -alias tomcat -keypass changeit -keyalg RSA&lt;br /&gt;this command is used to generate the .keystore file in  c:/documents and settingd/Nagi.Yedula/liferay folder.&lt;br /&gt;&lt;br /&gt;Then i copied the .keystore file into my own file.&lt;br /&gt;&lt;strong&gt; keytool -export -alias tomcat -keypass changeit -file %FILE_NAME%&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Then i used the below command to make certificate as trusted.&lt;br /&gt; &lt;strong&gt;keytool -import -alias tomcat -file %FILE_NAME% -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Then i modified the web.xml file in webapps/root/WEB-INF/lib folder.&lt;br /&gt;i added the  CASFilter.&lt;br /&gt;&lt;br /&gt;the i enable the SSL connector in &lt;strong&gt;server.xml &lt;/strong&gt;of tomcat folder.&lt;br /&gt;&lt;br /&gt;Then i start the Liferat tomcat serverthen i hit the http://localhost:8080/&lt;br /&gt;then i click signin in menu.it was redirect to below url&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;https://localhost:8443/cas-web/login?service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;then browser saying.&lt;br /&gt;localhost:8443 uses an invalid security certificate.&lt;br /&gt;&lt;br /&gt;The certificate is not trusted because it is self signed.&lt;br /&gt;&lt;br /&gt;(Error code: sec_error_ca_cert_invalid)&lt;br /&gt;&lt;br /&gt;if any body come across the problem.if any body found the solution.please let ma know.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Nagireddy Y</summary>
    <dc:creator>Nagiy reddyy Yedulay</dc:creator>
    <dc:date>2009-02-13T13:40:56Z</dc:date>
  </entry>
  <entry>
    <title>How can i display only the latest version of article in Journal portlet pag</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2075630" />
    <author>
      <name>Nagiy reddyy Yedulay</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2075630</id>
    <updated>2009-02-02T10:16:16Z</updated>
    <published>2009-02-02T10:16:16Z</published>
    <summary type="html">Hai to arthur.&lt;br /&gt;&lt;br /&gt;i got a requirement like ,i want to display only the latest version of article on the &lt;br /&gt;article tab of journal portlet.But older versions shouldn&amp;#39;t get displayed in portlet.&lt;br /&gt;&lt;br /&gt;How can i achieve this.&lt;br /&gt;&lt;br /&gt;your suggestions are always welcome.&lt;br /&gt;&lt;br /&gt;if any body,knows exact solution.please reply back to me.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Nagireddy Y</summary>
    <dc:creator>Nagiy reddyy Yedulay</dc:creator>
    <dc:date>2009-02-02T10:16:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to Cache Liferay JOURNAL CMS Content</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2023674" />
    <author>
      <name>Rob Sonke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2023674</id>
    <updated>2009-01-26T06:29:03Z</updated>
    <published>2009-01-26T06:29:03Z</published>
    <summary type="html">Check the &amp;#34;cacheable&amp;#34; checkbox in journal templates.</summary>
    <dc:creator>Rob Sonke</dc:creator>
    <dc:date>2009-01-26T06:29:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to Cache Liferay JOURNAL CMS Content</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2023521" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2023521</id>
    <updated>2009-01-26T05:38:32Z</updated>
    <published>2009-01-26T05:38:32Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;  I do not know how it works exactly, but did You checked the functionality of the option &amp;#34;cacheble&amp;#34; by every template? From the description by tthis option I would guess the result display of the article in the page is cached if this is checed (so, not the article, but only the concrete visual interpretation of the article on the specified place) - I think, this is more important than the caching of the article itself.&lt;br /&gt;&lt;br /&gt;There is made the caching of DB entities, so also of articles,e tc. if the cache is generally turned on...&lt;br /&gt;&lt;br /&gt;Did You also tried following option?&lt;br /&gt;&lt;br /&gt;#layout cache turned on - caches all guest pages:&lt;br /&gt;com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter=true</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2009-01-26T05:38:32Z</dc:date>
  </entry>
  <entry>
    <title>How to Cache Liferay JOURNAL CMS Content</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1920244" />
    <author>
      <name>Nagiy reddyy Yedulay</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=1920244</id>
    <updated>2009-01-12T05:27:10Z</updated>
    <published>2009-01-12T05:27:10Z</published>
    <summary type="html">Hai to every one.&lt;br /&gt;&lt;br /&gt;i got a requirement like,how can i do the Liferay JOURNAL CMS Content caching.&lt;br /&gt;But i found ehcache option for caching,it will for whole site,i need only for content(includes journal articles,journal content,journal content search any thing related to content.) to solve this problem query caching will help us or not.if yes give me the steps.&lt;br /&gt;&lt;br /&gt;how can i achieve this.&lt;br /&gt;please help to solve the problem&lt;br /&gt;&lt;br /&gt;Nagireddy Y</summary>
    <dc:creator>Nagiy reddyy Yedulay</dc:creator>
    <dc:date>2009-01-12T05:27:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entitiesy do You set</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=765081" />
    <author>
      <name>Pablo Mosquera Sáenz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=765081</id>
    <updated>2008-05-05T07:56:31Z</updated>
    <published>2008-05-05T07:56:31Z</published>
    <summary type="html">I still can´t avoid cache for some entities. Anyone could help please?</summary>
    <dc:creator>Pablo Mosquera Sáenz</dc:creator>
    <dc:date>2008-05-05T07:56:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entitiesy do You set</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=710409" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=710409</id>
    <updated>2008-04-23T14:01:09Z</updated>
    <published>2008-04-23T14:01:09Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;    why do You set &lt;br /&gt;&lt;br /&gt;hibernate.cache.use_second_level_cache=false&lt;br /&gt;&lt;br /&gt;?&lt;br /&gt;&lt;br /&gt;I think, this should be true to enable the ehcache, containing the cached objects... The first level cache of hibernate keeps the objects only during the living Hibernate session, what is used during one request only. As far as i know the second level cache should contain the objects also between the requests...&lt;br /&gt;&lt;br /&gt;   with regards, Archie</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2008-04-23T14:01:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entities</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=704327" />
    <author>
      <name>Pablo Mosquera Sáenz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=704327</id>
    <updated>2008-04-22T07:22:44Z</updated>
    <published>2008-04-22T07:22:44Z</published>
    <summary type="html">I need to update the relations fields (foreign keys) with other entities (MyAccount-OtherEntity), data in MyAccount and I think I wont need to update the User fields, only read them.&lt;br /&gt;&lt;br /&gt;I need then to have MyAccount with no cache.&lt;br /&gt;&lt;br /&gt;I want to keep the cache for all the other entities.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    value.object.finder.cache.enabled=true&lt;br /&gt;    value.object.finder.cache.enabled.com.liferay.portal.model.Layout=true&lt;br /&gt;    value.object.finder.cache.enabled.com.liferay.portal.model.User=true&lt;br /&gt;    value.object.finder.cache.enabled.Users_Roles=true    &lt;br /&gt;    value.object.finder.cache.enabled.com.ext.portlet.myaccount.model.MyAccount=false&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set other Hibernate cache settings.&lt;br /&gt;#&lt;br /&gt;    hibernate.cache.use_query_cache=true&lt;br /&gt;    hibernate.cache.use_second_level_cache=false&lt;br /&gt;    hibernate.cache.use_minimal_puts=true&lt;br /&gt;    hibernate.cache.use_structured_entries=false &lt;br /&gt;&lt;br /&gt;With this settings I have no cache for MyAccount, but also I have no cache for all other entities (I tested with User)</summary>
    <dc:creator>Pablo Mosquera Sáenz</dc:creator>
    <dc:date>2008-04-22T07:22:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entities</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701562" />
    <author>
      <name>Bruno Farache</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701562</id>
    <updated>2008-04-21T12:57:11Z</updated>
    <published>2008-04-21T12:57:11Z</published>
    <summary type="html">Which fields are you updating?</summary>
    <dc:creator>Bruno Farache</dc:creator>
    <dc:date>2008-04-21T12:57:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entities</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701461" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701461</id>
    <updated>2008-04-21T12:38:40Z</updated>
    <published>2008-04-21T12:38:40Z</published>
    <summary type="html">One more remark - You could specify&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set other Hibernate cache settings.&lt;br /&gt;#&lt;br /&gt;hibernate.cache.use_query_cache=false&lt;br /&gt;hibernate.cache.use_second_level_cache=false&lt;br /&gt;&lt;br /&gt;and not true, like You mentioned in Your post - this chould turn the cache off generally - but this is not a very good idea from performance reasons... I would rather try to turn off the second level cache, turn on the first level cache and then tunr off the cache specifically only by the entities which are updated from the second (legacy) system...&lt;br /&gt;&lt;br /&gt;  cheers, Archie</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2008-04-21T12:38:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Database access: no caching in some entities</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701452" />
    <author>
      <name>Artur Linhart</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=701452</id>
    <updated>2008-04-21T12:35:20Z</updated>
    <published>2008-04-21T12:35:20Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;    I think, there is a possibility You could turn off the caching of the specified entities by modifying the hibernate configuration file&lt;br /&gt;&lt;br /&gt;META-INF\portal-hbm.xml &lt;br /&gt;&lt;br /&gt;in &lt;br /&gt;&lt;br /&gt;webapps/ROOT/WEB-INF/lib/portal-impl.jar&lt;br /&gt;&lt;br /&gt;- here You can set entity specific caching for hibernate.&lt;br /&gt;&lt;br /&gt;But the seconf d problem is, there is used ehcache as a second level cache (it must be synchronized between the instances for example if You have more nodes in cluster) and I do not have any idea if it can be configured in this way... possibly you could by hibernate turn off the second level cache...&lt;br /&gt;&lt;br /&gt;good luck, Archie.</summary>
    <dc:creator>Artur Linhart</dc:creator>
    <dc:date>2008-04-21T12:35:20Z</dc:date>
  </entry>
  <entry>
    <title>Database access: no caching in some entities</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=700271" />
    <author>
      <name>Pablo Mosquera Sáenz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=700271</id>
    <updated>2008-04-21T07:49:12Z</updated>
    <published>2008-04-21T07:49:12Z</published>
    <summary type="html">I have to integrate my portal developed in liferay with another application. Both applications have access to the User and MyAccount (additional fields for users) entities.&lt;br /&gt;&lt;br /&gt;If I want to update one user fields from my other application, those changes are not seen in liferay because of the caching.&lt;br /&gt;&lt;br /&gt;I want to define there is no caching for those entities.&lt;br /&gt;&lt;br /&gt;I tried to define the portal-ext.properties&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Set other Hibernate cache settings.&lt;br /&gt;#&lt;br /&gt;hibernate.cache.use_query_cache=true&lt;br /&gt;hibernate.cache.use_second_level_cache=true&lt;br /&gt;hibernate.cache.use_minimal_puts=true&lt;br /&gt;hibernate.cache.use_structured_entries=false&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Value objects are cached by default. You can disable caching for all&lt;br /&gt;# objects or per object.&lt;br /&gt;#&lt;br /&gt;# For mapping tables, the key is the mapping table itself.&lt;br /&gt;#&lt;br /&gt;value.object.finder.cache.enabled=true&lt;br /&gt;value.object.finder.cache.enabled.com.liferay.portal.model.Layout=true&lt;br /&gt;value.object.finder.cache.enabled.com.liferay.portal.model.User=false&lt;br /&gt;value.object.finder.cache.enabled.Users_Roles=true&lt;br /&gt;value.object.finder.cache.enabled.MyAccount=false&lt;br /&gt;&lt;br /&gt;but doesn´t work. Any idea?</summary>
    <dc:creator>Pablo Mosquera Sáenz</dc:creator>
    <dc:date>2008-04-21T07:49:12Z</dc:date>
  </entry>
</feed>
