The value of the field "timestamp" is never set, so this defaults to 0 and thus cron will fetch all items from amazon regardless of the setting in "Amazon refresh schedule".

Proposed fix:

Add $item['timestamp'] = time(); to amazon_item_clean_xml-function.

Atle
ps: Using a timedate or timestamp-field with now() or current_time as default value is not supported in schema api. See http://drupal.org/node/215821

Comments

eaton’s picture

Status: Active » Fixed

Thanks. I've actually put the code in the amazon_item_insert() function, as the timestamp is only useful for records pulled from the database. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.