I want the cron run only once at say 01:00 hours after midnight, just to save shared hosting resources as cron empties the caches. My new site is using too much of resources and I'm trying my best to stick with shared hosting. I want to set cron run once in a day. It should run at midnight so that some cache is built before day time, when traffic is high.
I've only two somewhat related threads: make sure hook cron is only run once a day setting and How to run cron more often than every hour?
But for such simple thing it don't want to use Elysia module.
From this post: How do I get the (date)timestamp since last cron run? I understand if we manually set cron_last variable then may be next cron time will be calculated with respect to this.
Another way I can do is to run drush cron from a script from crontab which will run it at a particular time. Similarly we can call cron from crontab ( as in here).
I'd want it to be done from within a module etc so that whenever I move my site, it'll work at any new setup without doing any configuration.
Any suggestions?