• Resolved jacobraccuia

    (@jacobraccuia)


    Hi! Lovely plugin.

    How does Max number regenerate caches option work? If I have 100 cached API calls, and I have the site regenerating 2x daily, and the maximum is set to 10, will it always regenerate the same 10 results? I took a look at the code and I think that is the case, in which case it’s kind of useless unless I set a large arbitrary number.

    Thanks,
    jacob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @jacobraccuia

    Thank you for using our plugin!

    The Max number regenerate caches option allows you to set how many caches should be regenerated in one interval. This is so the regeneration doesn’t stress your server too much.
    Having set this option to 10 and the regeneration interval to twice daily would mean it would try to regenerate the 10 most requested and flushed/expired caches twice a day.

    Would this mean it would only regenerate the same 10 results? Well that is unlikely, because it would have to mean those 10 results are flushed/expired again before the next regeneration run. If that is the case for you, you would have to consider setting a longer cache timeout (if they expire within less than 12 hours) or setting a more frequent regeneration interval.

    Thread Starter jacobraccuia

    (@jacobraccuia)

    thanks for the quick answer, this cleared it up a bit for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Max number regenerate caches – how does it work?’ is closed to new replies.