• Hi,

    Any idea why we have so many (hundreds) of entries in the wp_options table that start leaflet_osm_?

    Could these have been created by an older version of this plugin? We are not seeing anything in the current plugin that adds them.

    Are they OK to delete?

    Thank you,

    Oliver

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor hupe13

    (@hupe13)

    I think yes. These are entries from geocoder.
    [leaflet-map address="..."]

    Thread Starter Oliver Campion

    (@domainsupport)

    Yes, but are they actively used or was this an old version that left them? We have 280 on our main site and they’re all set to autoload => true!

    Please advise if these can be purged?

    Thank you.

    Oliver

    Plugin Contributor hupe13

    (@hupe13)

    Thread Starter Oliver Campion

    (@domainsupport)

    I don’t think that’s related.

    But there is another option leaflet_geocoded_locations which is also set to autoload => true and is massive (13Kb) which I think should also not be there and I think that’s what your link above relates to.

    I would like to know if the leaflet_osm_ options can be deleted? Thank you.

    Oliver

    Plugin Contributor hupe13

    (@hupe13)

    Warum einfach, wenn es auch umst?ndlich geht. ??
    Why make it easy when it can be done in a roundabout way?

    In Leaflet Map Settings is a button “Clear Geocoder Cache”.

    Thread Starter Oliver Campion

    (@domainsupport)

    Ah ??

    OK, so it’s a cache … but unless users know that the data is permanently stored!

    In that case surely the plugin should use the WordPress Transients API rather than the options API?

    That would negate the requirement for the “Clear Geocoder Cache” button and allow old data to be forgotten.

    I would appreciate if this could be considered.

    Thank you.

    Oliver

    I think Oliver is right, this is IMHO a case for the transient API. The way it is done right now will eventually overload the options table on sites with dynamic map usage. This is something that should at least be documented in the admin screen where the delete option is placed. Or a warning could be placed there if the amount of entries is higher than , say, 100 or so … they are counted anyway in the option leaflet_geocoded_locations ( which creates an additional huge option table entry …)

    Maybe https://github.com/bozdoz/wp-plugin-leaflet-map/issues/213 is a better place to discuss it, since bozdoz himself has opened this issue .

    Thread Starter Oliver Campion

    (@domainsupport)

    Thanks @ulicgn, I’ve updated the ticket and referenced back to this thread.

    Oliver

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wp_options table with lots of “leaflet_osm_” rows’ is closed to new replies.