Execute plugin PHP file with route

Hello. I have a PHP script that needs to be run every say 30 mins. Usually I’d setup a cron job for this but my client’s web host does not support cron jobs (unbelievable). So my alternative approach is to point my site monitoring service (Uptime Robot) to a URL to check every 30 mins. I don’t know how I can access this specific PHP file via a URL. The file is ‘fetch.php’ which lives in one of my plugins. Can I setup a route to this file? How is this done?

ss

Any insight would be greatly appreciated.

Maybe I setup an include to the file?

Yes, you can require the file in your route and then return a 200 response.

There is also this poor-man’s-cron plugin: Queue | Kirby CMS

Got it. Thanks @texnixe