Hosh
New member
Hi,
Since I have control of the server I'm hosting my copy of XenForo, I want to use a real Unix cron instead of having it done with every request.
How do I do this?
Here's my current thinking:
(1) Configure web server to serve a static 1x1 transparent pixel on a request to cron.php (bypasing php, and doesn't require changes to themes or code)
(2) Set up script to invoke php-cli to run cron.php. Call it xenforo-cron.sh
(3) Setup Unix cron to run xenforo-cron.sh every hour.
Is there anything I have to be aware of? I have not yet cracked open the PHP code, but looking around, this should be able to work.
Since I have control of the server I'm hosting my copy of XenForo, I want to use a real Unix cron instead of having it done with every request.
How do I do this?
Here's my current thinking:
(1) Configure web server to serve a static 1x1 transparent pixel on a request to cron.php (bypasing php, and doesn't require changes to themes or code)
(2) Set up script to invoke php-cli to run cron.php. Call it xenforo-cron.sh
(3) Setup Unix cron to run xenforo-cron.sh every hour.
Is there anything I have to be aware of? I have not yet cracked open the PHP code, but looking around, this should be able to work.