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
Comment #1
eaton commentedThanks. 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!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.