{"id":356252,"date":"2015-12-30T08:04:14","date_gmt":"2015-12-30T08:04:14","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=356252"},"modified":"2021-07-22T09:39:42","modified_gmt":"2021-07-22T09:39:42","slug":"data-caching-for-maps-addresses","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/es\/course-lesson\/data-caching-for-maps-addresses\/","title":{"rendered":"Data Caching For Maps Addresses"},"content":{"rendered":"\n<p>In the case of the Types&nbsp;<strong>Address<\/strong>&nbsp;fields, the data is stored when the field is saved. When you use the Toolset Maps plugin,&nbsp;<a href=\"https:\/\/toolset.com\/es\/glossary\/view\/\">Views<\/a>&nbsp;will cache every address that needs to be displayed on a map. There are two reasons for this:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>It allows Toolset Maps fast access to the latitude and longitude coordinates. This results in a much better timing than if it fetches the data directly from the Google Maps or Azure Maps APIs, every time the coordinates are needed.<\/li><li>The Google Maps and Azure Maps APIs have a limit on requests coming from a registered API key. This limit is set per day, meaning that you could reach this limit quickly.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Inspecting and Removing the Stored Cached Data<\/h2>\n\n\n\n<p>Go to\u00a0<strong>Toolset\u00a0<\/strong>\u2192\u00a0<strong>Settings<\/strong>,\u00a0click the\u00a0<strong>Maps\u00a0<\/strong>tab, scroll to the\u00a0<strong>Cached data\u00a0<\/strong>section, and click the\u00a0<strong>Load stored data\u00a0<\/strong>button. A list of all cached map data appears. The following image shows an example of the\u00a0<strong>Cached data<\/strong>\u00a0section stored data.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"bed2bc82db00738fe1fc3700090ffd1d\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2015\/12\/cached-data.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2015\/12\/cached-data-500x217.png\" alt=\"\" class=\"wp-image-960253\"\/><\/a><figcaption><div class=\"tb-image-caption\">Caching Settings for the Toolset Maps plugin<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<p>You can delete each row individually. In the case of the Types\u00a0<strong>Address<\/strong>\u00a0fields, the data is stored when the field is saved.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking for Missing Cache Entries<\/h2>\n\n\n\n<p>Sometimes, the cache entries for maps might be missing. This could happen after importing addresses, glitches in maps API, etc. When this happens, Toolset can do a scan and restore the map cache. <\/p>\n\n\n\n<p>To do this, go to <strong>Toolset <\/strong>\u2192 <strong>Settings<\/strong>, click the\u00a0<strong>Maps\u00a0<\/strong>tab, scroll to the\u00a0<strong>Cached data\u00a0<\/strong>section, and click the\u00a0<strong>Check for missing cache entries<\/strong> button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"dddda3452ff910cc8bcdd501143ca823\"><img decoding=\"async\" width=\"809\" height=\"202\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache.png\" alt=\"\" class=\"wp-image-2122131\" srcset=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache.png 809w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache-300x75.png 300w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache-150x37.png 150w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache-768x192.png 768w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/07\/toolset-check-for-missing-map-cache-805x201.png 805w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><figcaption><div class=\"tb-image-caption\">Checking for missing map cache entries<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Toolset will check the cache and if there are entries missing, it will immediately get them. If there are too many, Toolset will start a cron job. This will eventually get all missing cache entries, and then automatically disable itself.<\/p>\n","protected":false},"author":4341,"featured_media":1666489,"template":"","related-lesson":[8423],"class_list":["post-356252","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-maps"],"_links":{"self":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/356252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":8,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/356252\/revisions"}],"predecessor-version":[{"id":2122139,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/356252\/revisions\/2122139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media\/1666489"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media?parent=356252"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/related-lesson?post=356252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}