-
Notifications
You must be signed in to change notification settings - Fork 5
Caching a response #3
Comments
@zizther That is a valid point. I had not thought about that yet, as I've been caching in an non-Craft application that consumes the api responses. I think there are a few options on the table.
I'm going to mull these options over and talk it over with my team. Your input is greatly appreciated too. |
Thanks Wes. At the moment I have the API being consumed separately and storing it in files being pushed to an S3. Option 1 was something I was thinking about, but as you say there needs to be caching busting involved. Option 2 does sound like what Craft have in mind, being they have opened up the caching to allow plugin devs to use other methods of caching (Redis, memcache, etc). I don't know if this plugin can fit in with how Craft has opened it self up to caching? Thanks for the looking into this, be good to know what you and the team think of. |
Sounds interesting. Is that approach because of how you need to use the plugin for projects? Your probably aware that Craft will eventually have its own REST API (I don't think this is scheduled for Craft 3 anymore), but they are opening up Craft's caching to allow developers to create plugins which can extend it and use Redis or Memcache. |
The middleware approach is an architectural change that will give us (or anyone else) greater flexibility to implement caching or any other additional layer, such as logging, throttling, OAuth, etc. We will utilize as much of the native cache drivers as possible that Craft might provide, but we'll have the flexibility to implement additional cache drivers if need be. |
Thanks for the updates. Look forward to seeing the updates. |
Hi.
This is a great plugin and works well.
I was wondering if it were possible somehow to cache a response?
Thanks
The text was updated successfully, but these errors were encountered: