Page 1 of 1

99 days?

Posted: Wed Jan 28, 2015 11:40 am
by thewoosh
I love this plugin - does everything I need and pretty straightforward BUT - why only 99 days ahead calendar view? I need to show the next years events. What needs changing to allow this?
Many Thanks

Re: 99 days?

Posted: Mon Feb 02, 2015 1:21 pm
by Kieran
This is because it does a database query per day into the future, which would get very computationally expensive if you were to do 365 queries on every page load. You can hack the plugin code (calendar.php) to support what you're asking, but your site may run slow and your server experience high load

Re: 99 days?

Posted: Mon Feb 02, 2015 3:42 pm
by thewoosh
Hi Kieran, thanks for getting back...
There are only about 20 events per year - is searching further forward going to make a significant difference to the load? ...and can I create a new page every 10 events or something so that there is not so much work needed per page?

Cheers,
Andy