<?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 Caching in a REST call in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292693#M245823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a caching problem… When I do a REST call to my Java Backed Webscript (a simply webscript that logs the properties of each node from a path) I could see that the result is cached, because if I modify these properties I can't see the changes until I restart. Every time the result is the same than the first call. Is normal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my webscript code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NodeRef folder = repository.getCompanyHome();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List pathElements = new ArrayList();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StringTokenizer tokenizer = new StringTokenizer( "User Homes/Directory 1/Directory 2", "/");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (tokenizer.hasMoreTokens()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String childName = tokenizer.nextToken();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pathElements.add(childName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NodeRef nodeRef2 = serviceRegistry.getFileFolderService().resolveNamePath(folder, pathElements).getNodeRef();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;logger.debug("PROPERTIES —&amp;gt; " + getNodeService().getProperties(nodeRef2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do for return the real properties each time and not the first time result? What I'm doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 10:50:28 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2014-04-29T10:50:28Z</dc:date>
    <item>
      <title>Caching in a REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292693#M245823</link>
      <description>Good morning,I'm having a caching problem… When I do a REST call to my Java Backed Webscript (a simply webscript that logs the properties of each node from a path) I could see that the result is cached, because if I modify these properties I can't see the changes until I restart. Every time the resu</description>
      <pubDate>Tue, 29 Apr 2014 10:50:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292693#M245823</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-04-29T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Caching in a REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292694#M245824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what have you defined in your desc.xml file? Have you made any entries there related to cache? Also, could you elaborate your problem bit more that what exactly is the issue you are facing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:40:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292694#M245824</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-29T11:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Caching in a REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292695#M245825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you got some sort of caching proxy in front of alfresco?&amp;nbsp; AFAIK there is no server-side way within alfresco to cache a result of a webscript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:21:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/caching-in-a-rest-call/m-p/292695#M245825</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-04-29T12:21:28Z</dc:date>
    </item>
  </channel>
</rss>

