<?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: cache hint &amp;gt; how does it work ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237326#M79537</link>
    <description>&lt;P&gt;Yes we do have plans add support for fetching all polyline and polygon features at once if they meet certain requirements. However, I do not know what the timeline is. I will be sure to update you once we add support for this.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 17:40:18 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-12-02T17:40:18Z</dc:date>
    <item>
      <title>cache hint &gt; how does it work ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237173#M79528</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are trying to replicate what's heppening with this layer for example:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems it is building a client side cache that's being used instead of throwing queries every time. Our layer has "supportCacheHint" set to true, but it's still not working.&lt;/P&gt;&lt;P&gt;Is there something we need to do to enable this caching?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 10:43:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237173#M79528</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2022-12-02T10:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: cache hint &gt; how does it work ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237295#M79533</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample you referenced is not related to supportsCacheHint. At 4.19, we improved of performance of point FeatureLayers to&amp;nbsp;&lt;SPAN&gt;fetch all its features at once from the server. Once loaded, the features won't need to be re-requested from the server, which will make future redraws after panning and zooming much faster. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Point&amp;nbsp;feature layer fetches all of its&amp;nbsp;&lt;/SPAN&gt;features at once if the following conditions are met:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;featureCount = 0-80,000, fetch all features &amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;featureCount = 80,001-400,000, fetch all features if view's initial extent is greater than 10% of the layer's data extent (i.e., if we are not super zoomed)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The point&amp;nbsp;feature layer will&amp;nbsp;request features as needed (do not fetch all features) if&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Point&amp;nbsp;layer is&amp;nbsp;editable&lt;BR /&gt;2. If layer.refreshInterval is set and lastEditDate is `undefined` in the metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The point layer referenced in the sample fetches all of features as once since it meets the requirements mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you enabled caching on your enterprise service (caching always enabled for hosted feature services), the JS API will take advantage of the server caching as it makes tile query requests for display. Please review &lt;A href="https://developers.arcgis.com/rest/services-reference/online/feature-layer.htm#ESRI_SECTION1_D8219F6FE2F94DFE8C43A7F297121BCD" target="_self"&gt;this document&lt;/A&gt; for more info about caching.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are sending query requests from your app and the query params always the same you can set the cacheHint property on your query object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint" target="_blank"&gt;https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 16:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237295#M79533</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-12-02T16:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: cache hint &gt; how does it work ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237323#M79536</link>
      <description>&lt;P&gt;Thanks a lot for your answer.&lt;/P&gt;&lt;P&gt;Is there a plan to support caching for polylines/polygons Feature Layers (with a smaller feature count for example)?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 17:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237323#M79536</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2022-12-02T17:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: cache hint &gt; how does it work ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237326#M79537</link>
      <description>&lt;P&gt;Yes we do have plans add support for fetching all polyline and polygon features at once if they meet certain requirements. However, I do not know what the timeline is. I will be sure to update you once we add support for this.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 17:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cache-hint-gt-how-does-it-work/m-p/1237326#M79537</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-12-02T17:40:18Z</dc:date>
    </item>
  </channel>
</rss>

