cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Reduce number of transients #571

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some installations still get too many transient entries in the database despite 
issue 532. I'd like to try a couple of things:

1. A particular map should only generate one set of transients for all requests 
for that map. Is this working?
2. Would some (most?) installations do better deleting transients when they are 
used? I don't like the idea of that many DB writes, but maybe if 1 is working 
correctly and there is still a problem this is worth a try.

Original issue reported on code.google.com by dylankk...@gmail.com on 10 May 2012 at 1:39

GoogleCodeExporter commented 9 years ago
revision b33acc4f501d, along with the resolution of issue 532 will minimize 
transient use. The only further action I could take would be a way to turn it 
off entirely.

Original comment by dylankk...@gmail.com on 28 Aug 2013 at 10:35

GoogleCodeExporter commented 9 years ago

Original comment by dylankk...@gmail.com on 3 Oct 2013 at 5:56

GoogleCodeExporter commented 9 years ago
I am experiencing large amounts of transient build-up. I am using 1.7.3 of the 
plugin and I am not aware of any active caching plugins.

I have implemented Purge Transients by Seebz after reading a discussion on this 
issue, however as I have only just installed it, I have not tested it. It is 
set to 1 day currently instead of 7 days as default.

Original comment by s...@artwork-creative.com on 7 Apr 2014 at 9:47

GoogleCodeExporter commented 9 years ago
The majority of the build-up is:

_transient_timeout_gmm1324aab52151bfeb466f73ad6eb3...
_transient_gmm1324aab52151bfeb466f73ad6eb32895

Original comment by s...@artwork-creative.com on 7 Apr 2014 at 9:49

GoogleCodeExporter commented 9 years ago
Geo Mashup should be clearing out its own transients daily. The only reasons I 
can see that would prevent this from working would be if there's an external 
object cache (causing wp_using_ext_object_cache() to return true) or if WP cron 
isn't working (causing the wp_scheduled_delete action not to fire).

There really should only be one transient for each different map view - I'd be 
curious to see what it is about your site that generates so many. Can you share 
a URL?

Original comment by dylankk...@gmail.com on 7 Apr 2014 at 10:20

GoogleCodeExporter commented 9 years ago
The URL is visitherefordshire.co.uk

Original comment by s...@artwork-creative.com on 8 Apr 2014 at 7:00

GoogleCodeExporter commented 9 years ago
Is Geo Mashup disabled now, or are the maps in an obscure place? 

Original comment by dylankk...@gmail.com on 8 Apr 2014 at 4:07

GoogleCodeExporter commented 9 years ago
They are located under individual accommodations etc. 

There is one example:

http://visitherefordshire.co.uk/accommodation/1861/sink-green-farm/

Original comment by s...@artwork-creative.com on 8 Apr 2014 at 7:16

GoogleCodeExporter commented 9 years ago
I see that the same transient for that map when I visit from different browsers 
- so I guess you must have a lot of those maps, or perhaps there is another 
more dynamic somewhere that changes over time.

One thing you could do right away is use the static="true" option for those 
maps. That would give you a static map image that would not create a transient.

I'm still left guessing why the transients aren't being cleared - I'll have to 
experiment locally with that.

Original comment by dylankk...@gmail.com on 14 Apr 2014 at 5:01