2 hours later…
13:20
@ChristineCooper I think what you want to consider is "push" or "pull" (see en.wikipedia.org/wiki/Pull_technology) - not sure of there exist better word in English for it. Right now you're pulling every hour, this means if data changed there'll be a lag of max 1h and if no change is done, the request is still made.
However, in a "push" setup, your site A would send a request to B whenever something changed. This is also usually how webhooks work. You can create a custom REST endpoint in B that is guarded (as Tom already suggested), and use that to update.
This might also allow that you only send changed data and not everything, but that depends on what kind of data we're actually talking about.
@TomJNowell / anyone: Recently I started reading up on core methods for caching. But now I'm unsure if I fully understand the difference between transient and object cache in WP. My understanding right now: object cache by default will only store for a single request, while transients store over multiple requests. I'd need an additional cache like Redis, for object cache to persist between requests. Is that correct? And if so, are there any more fundamental differences between the two?
« first day (4035 days earlier) ← previous day next day → last day (1208 days later) »