• Hello

    I have a problem when I try to add too many items in the same web page. It will not load the prices. I want to create a recommendations page with all the items, and I show prices for all EU Amazon, so I end up with 70-80 calls to the plugin.

    The first ones appear fine, but on the last ones I end up with empty price (-). I have tried to flush both caches (by the way, product cache is set for 6 hours and SC cache for 1 hour, do you recommend modifying it?).

    I’ve read to add this line could fix it

    // Sleep for 200,000us to slow down requests
    usleep(200000);

    Where should I add it, in amazon.php? I’ve done it, but with no results.

    Thanks

    https://www.ads-software.com/plugins/amazon-link/

Viewing 1 replies (of 1 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    That change was for a slightly different problem, so probably not ideal for your situation.

    If you refresh the page it _should_ slowly fill all the price information in. The plugin should only need to get the price of the products that failed the first time, the others should be retrieved from the cache.

    Try disabling the shortcode cache, it may be caching the blank information.

    Paul

Viewing 1 replies (of 1 total)
  • The topic ‘Empty prices when adding too many items’ is closed to new replies.