Skip Navigation

[Resolved] maps check missing cache entries automatic

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by herbie4 1 year, 7 months ago.

Author
Posts
#2592901

Tell us what you are trying to do?
I have an automated import of addresses (cpt) And I need to programacically fire the 'check for missing cache entries' after an import. Is there a hook or function for this?

Is there any documentation that you are following?
https://toolset.com/course-lesson/data-caching-for-maps-addresses/?utm_source=toolsetmapsplugin&utm_campaign=toolsetmaps&utm_medium=views-integration-settings-for-cached-data&utm_term=our%20documentation#checking-for-missing-cache-entries

#2593053

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I reviewed the plugin code that is responsible for updating the cache with missing addresses, but unfortunately there are no public static methods that could be called to trigger the process. It is tied in to the ajax call which occurs when you click the "Check for missing cache entries" button and cannot be run in isolation from it.

(The only alternative would be to create an unpaginated View to display all posts which include an address field and to output that address field. Visiting the page containing the View would update the cache with any missing entries. But that still involves visiting a page, albeit on the front end.)

#2595219

Hello Nigel,
Thank you for the quick response. To bad there is no option to do this the easy way. I will try your option by setting up a page with all addresses that will be loaded in an after import runs. Just have to wait and see if this fixes the issue.
Kind regards, hrbrt

#2595221

The fix is being implemented and tested. Thank you.