<?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: How to Force-Update a Node's Cache from the Database? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-force-update-a-node-s-cache-from-the-database/m-p/36358#M15337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The internal / undocumented API of the NodeDAO provides a&amp;nbsp;setCheckNodeConsistency method to disable use of the shared cache of the nodesTransactionalCache for the current transaction, which will result in always loading the state / identity data from the DB. This does not however affect the caches for aspects and properties, but these should not be a problem since their value key includes the node identity data (including the ID of the txn when the node was last changed), so if the node was updated, it will bypass the stale, cached data and also load the current data from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I do question the setup of having a write-enabled server connected to the same DB without being part of the cluster. It is generally possible to do this for read-only servers (when disabling some shared caches), i.e. to offload work for indexing without cluster communication adding more load, but IMHO should not be used for write-enabled servers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 19:20:32 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-12-28T19:20:32Z</dc:date>
    <item>
      <title>How to Force-Update a Node's Cache from the Database?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-force-update-a-node-s-cache-from-the-database/m-p/36357#M15336</link>
      <description>We are on Alfresco 5.1.3.&amp;nbsp; We have a "Batch" Alfresco instance that is not part of the cluster&amp;nbsp;and that handles batch jobs.We have several "Request" Alfresco instances that are part of the cluster and that handle transactional requests (mainly via CMIS).Our Batch&amp;nbsp;instance updates a node's metadata,</description>
      <pubDate>Thu, 28 Dec 2017 17:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-force-update-a-node-s-cache-from-the-database/m-p/36357#M15336</guid>
      <dc:creator>aowian</dc:creator>
      <dc:date>2017-12-28T17:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Force-Update a Node's Cache from the Database?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-force-update-a-node-s-cache-from-the-database/m-p/36358#M15337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The internal / undocumented API of the NodeDAO provides a&amp;nbsp;setCheckNodeConsistency method to disable use of the shared cache of the nodesTransactionalCache for the current transaction, which will result in always loading the state / identity data from the DB. This does not however affect the caches for aspects and properties, but these should not be a problem since their value key includes the node identity data (including the ID of the txn when the node was last changed), so if the node was updated, it will bypass the stale, cached data and also load the current data from the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I do question the setup of having a write-enabled server connected to the same DB without being part of the cluster. It is generally possible to do this for read-only servers (when disabling some shared caches), i.e. to offload work for indexing without cluster communication adding more load, but IMHO should not be used for write-enabled servers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 19:20:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-force-update-a-node-s-cache-from-the-database/m-p/36358#M15337</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-12-28T19:20:32Z</dc:date>
    </item>
  </channel>
</rss>

