Closed elibird closed 2 years ago
Sorry for the delay @elibird.
Thanks for this suggestion. I'll make a note of the bounds setting idea for future consideration, and we'll also consider adding the workaround to the demo templates and documentation. 🙂
I am maintaining a Craft 3 site w/ the calendar plugin, and noticed that Craft's /storage/runtime/cache folder was filling up with tens of thousands of files and using tens of gigabytes of space.
I tracked the issue down by examining the webserver's access logs and found various spiders crawling the "next" and "last" links, resulting in dates both very far in the future and past.
I modified the twig templates (month.html, day.html, week.html) to include something like the following:
So, this is more of a feature request, but it would be nice if I could go into the general settings of the plugin and set bounds on the links like I've done in the template, so that at a certain length of time either forwards or backwards, the "next" and "last" links no longer appear.
Craft & Plugin Info (please complete the following information):