No bounds on calendar means web spiders crawl the links relentlessly #180
elibird
started this conversation in
Feature Requests
Replies: 3 comments 3 replies
-
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. 🙂 |
Beta Was this translation helpful? Give feedback.
1 reply
-
We've updated our documentation as well as demo template examples in Calendar 4.0.2+ to include your suggested template-level approach. Thank you! 🙂 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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):
Beta Was this translation helpful? Give feedback.
All reactions