bozdoz / wp-plugin-leaflet-map

Add leaflet maps to Wordpress with shortcodes
https://wordpress.org/plugins/leaflet-map/
GNU General Public License v2.0
140 stars 71 forks source link

Using transients with one transient per lookup, no more transient collection array #218

Closed designzwang closed 10 months ago

designzwang commented 1 year ago

For performance reason and to avoid clogging of options table, we use transients. This seems more scalable in cases where many maps are created on a site with different addresses (i.e. if many lookups happen) They are auto-garbage-collected by wordpress, and if a 3rd party cache is present (Redis, memcache , ... ) transients will be placed there automatically. All transients are added with an expiry to keep them from being autoloaded when they end up in the options table (happens if no external cache is used)

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

bozdoz commented 10 months ago

Going to prefer the other pr for this one. Thanks though!