jaredwray / flat-cache

A stupidly simple key/value storage using files to persist the data
MIT License
165 stars 30 forks source link

Clear Cache #41

Closed SirPhemmiey closed 1 year ago

SirPhemmiey commented 5 years ago

When do i clear the cache?

I manually added a new row to a table and when I called the end point, it still showed me the old rows. So at what point do I clear the cache?

kaoz70 commented 5 years ago

You would have to clear the cache at some point in your app flow, for example on any CRUD operation, or add a button to the app's admin UI that sends a request to delete the cache. It's really up to you when and how to do this.

jaredwray commented 1 year ago

There is a clearall function but we are going to be adding more tests around this.