<?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 permissionsServiceImpl.setPermission always clears cache in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158606#M112698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that the permissionsServiceImpl.setPermission always clears the whole cache (permissionAccessChace). This seems strange to me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public void setPermission(NodeRef nodeRef, String authority, PermissionReference perm, boolean allow)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permissionsDaoComponent.setPermission(nodeRef, authority, perm, allow);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accessCache.clear();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Why for adding one permission for one noderef for one authority the whole cache is thrown away? It's a problem that also the "shared" cache is cleared - not only the trasactional.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd rather expect the service manipulates the cache smartly and inserts/changes the permisions entry in the cache - sounds like a common cache scheme. Is there some hidden point I am missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For me it's a little problem, cos I am having a performance issues resulting from permissions evaluations. I want to minimize the permissions loading from DB, and so caching would be enough. I even do some sort of cache pre-load. That would work but then a user invokes some common action that internally sets permission and all the cache is out.&amp;nbsp; Would an update of the cache instead of clearing it be a problem to implement? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any comments.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 19:07:41 GMT</pubDate>
    <dc:creator>vycitalr</dc:creator>
    <dc:date>2008-03-11T19:07:41Z</dc:date>
    <item>
      <title>permissionsServiceImpl.setPermission always clears cache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158606#M112698</link>
      <description>Hello,I found that the permissionsServiceImpl.setPermission always clears the whole cache (permissionAccessChace). This seems strange to me. public void setPermission(NodeRef nodeRef, String authority, PermissionReference perm, boolean allow)&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permissionsDaoComponent.setPermission(nodeRef</description>
      <pubDate>Tue, 11 Mar 2008 19:07:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158606#M112698</guid>
      <dc:creator>vycitalr</dc:creator>
      <dc:date>2008-03-11T19:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: permissionsServiceImpl.setPermission always clears cache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158607#M112699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The implementation is changed in 3.0 and there is no caching required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 11:06:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158607#M112699</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-07-01T11:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: permissionsServiceImpl.setPermission always clears cache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158608#M112700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just curious about how it is reimplemented so I checked the current SVN head and found no obvious changes - setPermission still keeps clearing the cache. Also in the downloaded 3.0.0.-dev nightly build the cache configs sitll contains the same setting about permissionAccessCache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not go in any further detail examination, but I rather suppose this is still just planned but not done yet?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 09:31:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158608#M112700</guid>
      <dc:creator>vycitalr</dc:creator>
      <dc:date>2008-07-02T09:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: permissionsServiceImpl.setPermission always clears cache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158609#M112701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The cache is used when OLD style ACLs are found but not for new.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to look at all the code changes and not just see if the cache is still there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 10:37:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/permissionsserviceimpl-setpermission-always-clears-cache/m-p/158609#M112701</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-09-04T10:37:20Z</dc:date>
    </item>
  </channel>
</rss>

