Add random number / ID to cronjob URL and POST data

To prevent your web server from caching your script execution results, you should add random number to your cronjob URL using the keyword __random__

For example, you set up cronjob with the URL to call


Every time your cronjob is executed, the __random__ keyword will be replaced with a random number, e.g.


There are other keywords:

__timestamp__ will be replaced with current Unix timestamp

__cronjob__ will be replaced with the cronjob ID

You can also add those keywords into your POST data (only available with HTTP Method POST or PUT).


Please sign in to leave a comment.