I run a financial site on Wordpress. I reference the current stock price via a 3rd party API. My goal is to have a reasonably accurate price but I do not need it to updated every time the post is viewed. There is a lot of other information on that post that is static and the current price is not the biggest reason that readers are on the site. Also, the API costs money each time it runs.
I would like have CC cache the result of the API if it hasn’t been refreshed in the last hour. If it is longer than an hour then I want the API to look up the latest stock price.
Hopefully, the above is clear. Is this possible with Comet Cache? I would prefer to not create my own caching logic for these calls.