<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Client cache enabled but not active in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/client-cache-enabled-but-not-active/m-p/297106#M250236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;seems to work for getObject if you're using the exact combination of id;version, but for actually retrieving the content, the cache is not used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Document document = (Document)session.getObject(id); &lt;BR /&gt;document.getContentStream().getStream();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the last line triggers a GET to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;alfresco_root/folder/content/doc_name?id=id;version&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2013 12:08:00 GMT</pubDate>
    <dc:creator>horia</dc:creator>
    <dc:date>2013-10-15T12:08:00Z</dc:date>
    <item>
      <title>Client cache enabled but not active</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-cache-enabled-but-not-active/m-p/297105#M250235</link>
      <description>Hi,I'm looking at Alfresco's logs while fetching documents and I can see that each time I try to retrieve the same doc (same ID), a GET request is made to the remote repository.I ran a test where I explicitly call session.getDefaultContext().setCacheEnabled(true)‍ before calling session.getObject(id</description>
      <pubDate>Mon, 14 Oct 2013 16:26:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-cache-enabled-but-not-active/m-p/297105#M250235</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-10-14T16:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Client cache enabled but not active</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/client-cache-enabled-but-not-active/m-p/297106#M250236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;seems to work for getObject if you're using the exact combination of id;version, but for actually retrieving the content, the cache is not used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Document document = (Document)session.getObject(id); &lt;BR /&gt;document.getContentStream().getStream();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the last line triggers a GET to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;alfresco_root/folder/content/doc_name?id=id;version&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:08:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/client-cache-enabled-but-not-active/m-p/297106#M250236</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-10-15T12:08:00Z</dc:date>
    </item>
  </channel>
</rss>

