I use the awesome WP Pipes plugin for importing RSS feed items to posts (including content extraction, duplicate detection):
For running the pipe periodically, I have to set up a cronjob.
Is there a best practice approach for setting up a cronjob in Bedrock/Trellis site?
Should the cronjob be added to site config or to Trellis ansible config?
disable_wp_cron is set to true by default in trellis.
So the consensus is that WordPress cron should be disabled and real cron be used?
WordPress cron seems to emulate real cron by checking date+time for each request by user, so a visitor has to actually “pump” the cronjobs by requesting from the WordPress site.
In task Setup WP system cron trellis sets up a real cronjob that let the WordPress site check for due cronjobs? Do I have to align these real cronjobs to all the internal WordPress site jobs so they are run in a timely manner?
With aligning I mean that there could be cronjobs that should run each hour and some that should run each day. But the system cronjob invokes one WordPress cron script, so it makes sense to create one system cron with the smallest interval (here each hour)?
How can I access one particular site in wordpress_sites, the one for which I want to set up the cron job, so I can use the proper paths to the site PHP script and toggle state (absent when the wordpress site is absent, present when the wordpress site is present)?