This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Bust cache of specific endpoint when PUT/DELETE request with other endpoint #48
Open
Description
I have a model with 3 fields containing {id(auto-generated), username, email}
I have modified the default GET endpoint to "username" instead of "id" to search specific record based on username like
GET /profiles/someusername
But for PUT/DELETE I'm using "id" as the endpoint PUT/DELETE /profiles/random_generated_id
Whenever I use PUT/DELETE, data changes in the database, the previously cached data of different endpoint is not busting. I'm thinking of extending those PUT/DELETE API and manually deleting the specific endpoint's cache.
Help me get out of this situation.
Metadata
Metadata
Assignees
Labels
No labels