craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 56 forks source link

[Question] Where is the cache stored? #122

Closed brianjhanson closed 3 years ago

brianjhanson commented 4 years ago

I've been digging around for the last few days trying to find exactly where the cache for the element-api is stored. We implemented a cache clearing solution as suggested by Brad but that doesn't seem to clear the entire cache. I haven't had much success clearing the cache unless I clear everything but I was curious if there was a more targeted solution.

Thanks!

brandonkelly commented 3 years ago

Caches are stored right alongside other data caches. As of Element API 2.7.0, you can clear just the Element API caches via the Caches utility, or the craft invalidate-tags/element-api command.