Hi Russell,
Roughly how many events do you have?
Over 2,100 events at present
Thanks
Russell
1. how about using conditional placeholder like {is_future}content{/is_future} so it won’t load past events – http://wp-events-plugin.com/documentation/conditional-placeholders/
2. tooltip, try Events > Settings > Formatting > Calendar
Thanks Angelo,
Unfortunately I need to display all events on each month so can’t use a conditional placeholder, surely this wouldn’t effect the speed though as it would need to run through each conditional on every event?
I’ve looked there for the tooltip but the setting’s no longer there?
Thanks
Russ
Hey Russ,
I notice you have some interesting formatting on these events, are you adding any custom code there to generate this content?
What is your calendar format?
I do notice that you’re loading 400+ events on one page though… it might just be inevitable that your page takes that long to load. I’m guessing if you tried to load 400 events or even normal WP pages in your wp admin are you’d run into similar speed problems.
What if you add a limit to the number of events per day? E.g. try 3 events per day.
The optimizations we made were for this situation, where you may have 1000s of events but only show x events per day, not all at once.
Hi Marcus,
Sorry for the delay in getting back to you on this – I was wandering if it’s possible to put the calendar in the WordPress Transient Cache? Hopefully this would enable our calendar to display a lot quicker – and we could refresh the cache every 4 hours or so?
Cheers
Russ
Hi Marcus,
Did you have any thoughts on how to implement the calendar into the WordPress transient cache? The performance of the calendar is terrible on our site – even though we’re on a very powerful host. Any way to fix this would be greatly appreciated,
Thanks
Russell
am going to asked Marcus about his and post any reply here.
I asked Marcus about this, he mentioned that the recent update should help matters – try adding this line to wp-config.php
define(‘EM_CALENDAR_OPT’,true);
Whilst it’s possible to use transient caching (and something we’re slowly looking into), we haven’t implemented this yet so you’d need to create your own solution for this if that’s the way you want to go.
Hi Angelo,
Thanks for looking into this – unfortunately the line of code hasn’t really made that much of a difference – it still runs incredibly slow:
http://ibiza2013.net/calendar/?mo=8&yr=2013
Any ideas if the transient thing will be something you’re going to integrate soon (next few months?). Or if not where do I start to look at to make the calendar display in a transient?
Cheers
Russ
No ETAs I’m afraid (no good making promises if we can’t be sure to keep them!) but if you want to implement this yourself you’ll probably need to look at EM_Event::get() for filters you can hook into to implement your own transient caching.
Thanks
Looking at your load speeds, considering the number of events you show on one page, it’s pretty quick for me (< 3 secs)
Given you’re not using AJAX here, what about using a caching plugin to cache the page?
Hi guys,
The calendar fills up quite a bit in the next few months to show hundreds of events per month (http://ibiza2013.net/calendar/?mo=8&yr=2013 << example).
We’re on WPEngine so they do cache it a bit, would another caching plugin help with that or not? I might try build the calendar using a wp_query like I’ve done with the rest of the site and that way I can build it into the transient cache – I’ll see how I get on 🙂
Cheers
Russ