This core module provides hooks that are automatically executed at various intervals. This module is already included with the ProcessWire core, but not installed by default.
This core module provides hooks that are automatically executed at various intervals. This module is already included with the ProcessWire core, but not installed by default.
It is called 'lazy' because it's triggered by a pageview, so the interval is guaranteed to be at least the time requested (and maybe more) rather than exactly the time requested. The more pageviews your site gets, the closer it is. This is fine for most cases, but if you need it to be fully accurate I'll describe how you can make it not-lazy a little further down.Hookable time intervals
------------
These are the function names you can hook from LazyCron. The function names describe the time intervals they provide. If you think I'm missing any important time intervals, please let us know and we can add more.
- every30Seconds
- everyMinute
- every2Minutes
- every3Minutes
- every4Minutes
- every5Minutes
- every10Minutes
- every15Minutes
- every30Minutes
- every45Minutes
- everyHour
- every2Hours
- every4Hours
- every6Hours
- every12Hours
- everyDay
- every2Days
- every4Days
- everyWeek
- every2Weeks
- every4Weeks
Install and use modules at your own risk. Always have a site and database backup before installing new modules.