You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question may be totally out of scope, however I'd love see an example or at least hear your thoughts on how integrate this with a background cron job.
We have a situation in which we need to ping an API for quite a bit of data, and doing so live just takes too long. The background_only() method would work just fine, however the traffic to the site is low enough that it could be quite a while before a new visitor triggers a background fetch, and the API data is updating very rapidly. As such, we'd like to fetch it more frequently, potentially with using a regularly triggered cron job (set to trigger regularly on the server).
So, a few questions:
Is there a way to accomplish this purely with WP-TLC-Transients?
If not, do you by any chance have an example of integrating this with cron?
Are there any special considerations you can think of that we'd need to keep in mind?
Thanks a ton y'all, this is great!
The text was updated successfully, but these errors were encountered:
This question may be totally out of scope, however I'd love see an example or at least hear your thoughts on how integrate this with a background cron job.
We have a situation in which we need to ping an API for quite a bit of data, and doing so live just takes too long. The
background_only()
method would work just fine, however the traffic to the site is low enough that it could be quite a while before a new visitor triggers a background fetch, and the API data is updating very rapidly. As such, we'd like to fetch it more frequently, potentially with using a regularly triggered cron job (set to trigger regularly on the server).So, a few questions:
Thanks a ton y'all, this is great!
The text was updated successfully, but these errors were encountered: