Clear nitro route cache programatically
Hi! I would like to clear some cache programatically in a Nitro handler so another service can call this route to clear a certain part of the cache. I currently have the following code:
I fetch the keys for debugging purposes. When fetching the keys, I do receive the correct keys that are cached but the clear method doesn't seem to do much? When I look in the nitro cache folder locally, the files are still there.
What am I doing wrong?
I fetch the keys for debugging purposes. When fetching the keys, I do receive the correct keys that are cached but the clear method doesn't seem to do much? When I look in the nitro cache folder locally, the files are still there.
What am I doing wrong?
