The general settings simply explained

Every field of the General settings tab: cronjob type, update window, queue, e-mail report about faulty products, cache duration and import intervals.

The General settings tab controls how and when affiliate-toolkit updates your product data: the cronjob, the update time window, the queue, the e-mail report about faulty products and the cache duration. You find it under affiliate-toolkit → Settings; it is the first tab.

The defaults work for most sites. You usually only touch this tab if you have many products, run several websites with the same API keys or want an e-mail report about errors. Save your changes with Save Changes at the bottom.

The General settings tab with cronjob type, update time window, queue log retention and package size, data check e-mail report, cache duration and AWIN/CSV import interval
The General settings tab

All fields at a glance

SettingWhat it doesDefault
cronjob typeHow product updates are triggered: WordPress Cronjob, External Cronjob or External Cronjob + OutputWordPress Cronjob
Cron URL (only for external cronjobs)The URL your server-side cronjob has to callgenerated automatically
Productdata updates betweenTime window (from – to) in which product updates may runempty (any time)
Delete Queue logs (after x days)How long the queue entries and error logs are kept7
Queue package sizeHow many products, lists or shops are processed in one queue object2000
Enable data checkSends an e-mail report about faulty products and listsoff
Notification intervalHow often the report is sent: 6 hours, 12 hours, 1 day, 3 days or 1 week3 Days
Recipient of e-mail reportOne or more e-mail addresses, separated by commasempty (site administrator)
Cache durationHow long product data is cached before it is fetched again: 1 hour to 1 week1 Day
AWIN Import intervallHow often the AWIN feeds are imported (only with the AWIN module)1 Day
CSV Import intervallHow often the CSV feeds are imported (only with the CSV module)1 Day

Cronjob type and cron URL

The cronjob type decides what triggers the product updates:

  • WordPress Cronjob (default): WordPress starts the updates itself. This depends on visitors hitting your site, so updates can be delayed. It is fine for small projects; the plugin recommends it for up to about 1,000 products without price comparison.
  • External Cronjob: a cronjob on your server calls a separate script of the plugin. You get reliable, predictable updates and more control. Use this for larger sites and price comparisons.
  • External Cronjob + Output: works like the external cronjob, but the script also prints which products are updated and whether an error occurred. Handy while you set things up or debug.

As soon as you choose an external cronjob, the tab shows the cron URL. It points to affiliate-toolkit-cron.php in the plugin folder and contains a secret key. Set up a server-side cronjob at your hosting provider that calls this URL every 10 minutes.

Below the field the plugin shows when the cronjob last ran. Green means updates run regularly. A notice appears if the cronjob never started, has not run for more than 30 minutes (which can be normal with a time window) or more than a day, or ran without processing anything (often an HTTP 500 error).

If the WordPress cronjob does not start, save this settings page again. Saving re-registers the cronjob in the WordPress scheduler. Whether updates really run without errors is shown under affiliate-toolkit → Queues.

All details, including example commands for your hoster, are in How to set up the cronjob.

The cronjob section of the general settings with the cronjob type set to an external cronjob, the cron URL to call and the update time window
External cronjob with cron URL and update time window

Update time window

With Productdata updates between you set a start and end time for product updates. Outside this window the plugin does not update anything. Next to the fields you see the current server time, so you can check which time zone applies.

This is useful if you use the same API keys on several websites, especially with Amazon: give each site its own window so the requests do not overlap. For example, website A updates from 06:00 to 10:00 and website B from 10:00 to 16:00. Leave both fields empty to allow updates at any time.

Queue: log retention and package size

Every update run is written to the queue together with its errors. Over time this table can grow large and slow down updates.

  • Delete Queue logs (after x days): queue entries older than this are deleted. The default is 7 days. If the table has too many rows, set a lower value.
  • Queue package size: how many products, lists or shops go into one queue object. The default is 2000. If you run into database problems or have a weak server, try a value around 200 or lower.

E-mail report (data check)

Besides the queue in the backend, the plugin can send you a report about faulty products and lists by e-mail. It only contains product and list errors.

  1. Tick Enable data check.
  2. Choose the Notification interval: 6 hours, 12 hours, 1 day, 3 days (default) or 1 week.
  3. Enter the Recipient of e-mail report. Separate several addresses with commas, for example user1@example.com,user2@example.com. If the field is empty, the report goes to the site administrator.
  4. Save. With Send report now you can send a report immediately; once a report exists, Open last report shows the latest one.

The report is always a snapshot. It is sent by the cronjob, so it does not arrive exactly on the minute but with some delay.

Cache duration and import intervals

Cache duration sets how long product data is kept before the plugin fetches it again from the data source. You can choose 1 hour, 6 hours, 12 hours, 1 day (default), 3 days or 1 week. We recommend 1 day. This cache has nothing to do with WordPress caching plugins.

The shorter the cache duration, the more API requests you need. With Amazon in particular, a very short duration can hit the request limits.

If the AWIN or CSV module is active, two more fields appear: AWIN Import intervall and CSV Import intervall. They control separately how often the feeds are downloaded and imported (6 hours to 1 week). The default and our recommendation is 1 day.

Notes