In the docs I see the following reference to setting up a cron job and was wondering what the "-p cron -t" options actually do or mean?
Can't seem to find anything when searching or googling about them.
0 * * * * usr/local/php5/bin/php /home/your_username/public_html/index.php -p cron -t hourly
Those are custom parameters specific to Osclass, to inform it that a Cron is running.
PS: On Osclass Enterprise, the default internal Cron should function properly, so there's no need for an external one.
Those are custom parameters specific to Osclass, to inform it that a Cron is running.
PS: On Osclass Enterprise, the default internal Cron should function properly, so there's no need for an external one.
Thanks for the reply. What does -p and -t stand for though. Would like to know for my own knowledge?
Also curious why the minutely cron won't work with 3.8.1 or Enterprise Edition? Even the default cron only shows hourly, week, and monthly.
@nootkan -p stands for Page, the page that triggers the Cron, and -t stands for Type, the type of Cron that is getting triggered (Hourly, Daily, Weekly).
Osclass was built to handle thousands of users and tens of thousands of listings, and with Cron being a resource intensive task (depending on its actions), running a minutely Cron would cause some servers (especially shared ones) to crash. Besides the high traffic a popular site would have, imagine hundreds of tasks being run every minute.
So I'm guessing that's why the original Osclass developer built-in only 3 types of Cron (Hourly, Daily, Weekly).
This is also the reason I didn't pursue to add other intervals. Better safe than sorry.
Okay thanks for the clarification. I agree about the traffic concerns which is why I wasn't too concerned with the minutely cron, just curious.