• Hi,

    I would like an optimal method of retrieving markers used in posts e.g. for creating a mash up of all markers across posts.

    I humbly request you cache marker information in wp_postmeta so it can be retrieved for other uses.

    Great plugin, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bozdoz

    (@bozdoz)

    This seems hefty; how about a WordPress action whenever a marker is accessed? Something like:

    
    do_action('leaflet_marker_render', (object) array(
      'lat' => $lat,
      'lng' => $lng,
    ));
    
    Thread Starter vii2

    (@vii2)

    I’m new to wordpress so will have to look into that, thanks.

    My inital assumptions are:
    1) a marker is “accessed” or “rendered” when the page is loaded
    2) if 1) is true then the action runs for every marker on every page load
    3) if 2) is true then it’s executing a lot as the posts and markers grow

    Questions I have
    1) Is this a new proposed change or can I already hook into the action you mentioned?
    2) I just want a single key/value of the lat/long pair in wp_postmeta, is that hefty? Asking to verify I was being clear before.

    • This reply was modified 6 years, 3 months ago by vii2.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache Markers in wp_postmeta’ is closed to new replies.