<?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 Question about refreshInterval behavior in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-refreshinterval-behavior/m-p/1151651#M76591</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to see if I understood correctly the refreshInterval behavior:&lt;/P&gt;&lt;P&gt;if I have several layers on the map (3 for example) and on each one of them I set the refreshinterval to be 6 sec so every 6 sec I will see 3 requests to refresh the data? 1 request for each layer or 1 request for all?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 11:43:57 GMT</pubDate>
    <dc:creator>HanochS</dc:creator>
    <dc:date>2022-03-08T11:43:57Z</dc:date>
    <item>
      <title>Question about refreshInterval behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-refreshinterval-behavior/m-p/1151651#M76591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to see if I understood correctly the refreshInterval behavior:&lt;/P&gt;&lt;P&gt;if I have several layers on the map (3 for example) and on each one of them I set the refreshinterval to be 6 sec so every 6 sec I will see 3 requests to refresh the data? 1 request for each layer or 1 request for all?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 11:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-refreshinterval-behavior/m-p/1151651#M76591</guid>
      <dc:creator>HanochS</dc:creator>
      <dc:date>2022-03-08T11:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question about refreshInterval behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-refreshinterval-behavior/m-p/1151794#M76599</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Depends on what version of the API we are talking about here. At 4.21 and 4.22, we made improvements to refreshable layers.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;At 4.21:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/4.21/#refreshable-layers" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/4.21/#refreshable-layers,&lt;/A&gt;&amp;nbsp;we made changes to FeatureLayer refresh logic.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To reduce load on the server and minimize unnecessary requests, the FeatureLayer will only request data at its specified&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refreshInterval" target="_blank" rel="noopener"&gt;refreshInterval&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lastEditDate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the layer's metadata has changed. If the FeatureLayer does not have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lastEditDate&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;info, then the layer will refresh unconditionally.&lt;/LI&gt;&lt;LI&gt;We added support for refreshInterval and refresh method on WFSLayer at 4.21.&lt;/LI&gt;&lt;LI&gt;We added support for refreshInterval and refresh method on GeoJSONLayer, CSVLayer and GeoRSSLayer at 4.22&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So if you have a FeatureLayer has has LastEditDate, then you will not see refresh requests to the service unless the lastEditDate changes (meaning the data has changed). This is the only time you will see requests to the service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For other layers, yes you should see requests at specified intervals. You will requests for all layers.&amp;nbsp;Number of requests won't match the number of layers. You can see multiple requests for each layer. We need to fetch enough data to cover the view.extent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 16:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/question-about-refreshinterval-behavior/m-p/1151794#M76599</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-03-08T16:52:04Z</dc:date>
    </item>
  </channel>
</rss>

