You are here:  » Understanding cron.php and the Automation Tool


Understanding cron.php and the Automation Tool

Submitted by Convergence on Sat, 2012-05-26 22:37 in

v12/10B

Greetings,

It would appear that cron.php will "fetch" any feed URL setup in the Automation Tool. It also appears that it runs all feed import features as well.

Is there a way to have the cron.php in the Automation Tool ONLY "fetch" feeds and not import them?

Reason being is we use the import_slow.php feature and it is already setup on it's own CRON job.

Thank you!

Submitted by support on Sun, 2012-05-27 08:52

Sure,

Use fetch.php to simply run Automation Tool jobs, but not import them....

cd /path/to/pricetapestry/scripts;/usr/bin/php fetch.php @ALL

Cheers,
David.
--
PriceTapestry.com

Submitted by Convergence on Sun, 2012-05-27 17:23

Hi David,

Thank you! Worked like a charm.

Submitted by allanch on Thu, 2013-05-23 15:58

Hi David, it's me again. I've been doing some experimenting with cron jobs again I have a small problem running fetch.php and I get this error message

Status: 302 Moved Temporarily
Location: login.php
Content-type: text/html

I have run cron.php and that fetches all the feeds but because I have a 30 sec limit on PHP scripts I'm unable to use it. Hope you can help. thanks

Submitted by support on Fri, 2013-05-24 08:14

Hi Allan,

Remove this code from line 6 and you'll be able to CRON fetch.php without the redirect...

  $admin_checkPassword = FALSE;

If you're still having execution time issues let me know and I'll help you set-up the scriptable version of slow import...

Cheers,
David.
--
PriceTapestry.com

Submitted by allanch on Fri, 2013-05-24 08:46

Hi David, I will give that a shot. I understand the execution time is a limitation with my shared server plan and hope to upgrade it someday to get over this issue. Thanks for your help as always!