Limited Offer! 50% OFF Time left: loading...

Setup Models Auto Import

In one click, enable the models auto import feature. Models will be imported / updated every 5 minutes.

Auto import models

Auto-import needs a real cron

In order to update the availability of the webcam models (online/offline) every 5 minutes on your site, a cron task needs to be run frequently.

WordPress natively integrates a cron system. But this cron only starts when a visitor accesses a page of your site. This can be a problem when you start your site and have no traffic yet.

Fortunately it is possible to disable this cron and replace it with a real cron run by your server. This server cron will automatically launch the webcam models update script, even if there is nobody on your site.

How to setup a server cronjob

1. Disable WordPress native cron on your site

Edit your wp-config.php file and add this line:
define('DISABLE_WP_CRON', true);

Learn more about how to edit wp-config.php.

2. Setup the real cron on your server

  1. Log into you cPanel
  2. Go to Advanced section and click on Cron jobs
  3. Add a new Cron job
  4. Set the frequency as a “UNIX crontab” and paste the following command to run the cron every 2 minutes:
    */2 * * * *
  5. Set the task as “Execute a command” and paste this command (don’t forget to change by your site url):
    wget -q -O - >/dev/null 2>&1 get a nice tutorial about Hooking WP-Cron Into the System Task Scheduler.