Support Forums - Classified Ads Script Osclass

Osclass plugin support => Ad Importer Plugin => Topic started by: ahmose on November 03, 2023, 07:24:33 AM

Title: minutely cron
Post by: ahmose on November 03, 2023, 07:24:33 AM
how can i added minutely cron to run the importer for ex. every 20 minutes ?
its more effective to run it with few ads many times than running it one time every hour with 100 ad
Title: Re: minutely cron
Post by: MB Themes on November 04, 2023, 10:35:24 AM
Run minutely cron once per 30 minutes and change processing function to minutely cron.
Title: Re: minutely cron
Post by: ahmose on November 06, 2023, 10:45:56 PM
i added to importer/index.php

function imp_run_cron_minutely() { return imp_run_cron('minutely'); }
osc_add_hook('cron_minutely', 'imp_run_cron_minutely');

and changed the oc_t_imp_import.s_cron to minutely

am i missing anything ?
Title: Re: minutely cron
Post by: MB Themes on November 07, 2023, 05:51:22 PM
Looks correct ;)