Faithful-Resource-Pack / API

A public API for Faithful Resource Pack textures, add-ons and more
https://api.faithfulpack.net
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add purge endpoints for API results cache #17

Closed TheRolfFR closed 2 months ago

TheRolfFR commented 2 years ago

When starting a search with settings version 1.19.2, gallery results (empty) were cached. After updating minecraft version paths from 1.19 to 1.19.2, we restarted a new gallery search, but the previous empty results showed up.

What to do

Create new endpoints to erase cache values (all or with glob string parameter). The method to purge them all is even already coded, just some code for the glob one and endpoints and we it will be on. Just make a service and a controller.