will-moss / erin

Self-hostable TikTok feed for your clips. Make a TikTok feed with your own videos
MIT License
218 stars 8 forks source link

Cache invalidation #12

Open will-moss opened 2 hours ago

will-moss commented 2 hours ago

I just deployed Erin when I back to home. And the experience is good.

However latter seems I encounter another issue related to cache. (seems there is one because when I moved file to another and restart the container, it still can play)

How can I force refreshing the video cache (especially when I need to update the metadata), could you help on this?

_Originally posted by @hyyin

will-moss commented 2 hours ago

Hi @hyyin,

I've created this issue so as not to interfere with the previous one.

To force refresh the cache, you can open your browser devtools, and, in the Javascript console, run "localStorage.clear()" while on Erin's interface.

Else, you can also try to access Erin via a private browser (Cmd + Shift + N / Ctrl + N) and see if that fixes the issue.

Also, please note that, wherever your video is located, Erin will find it as long as it belongs to the same root directory that is mounted on your container. A full recursive scan is performed, so no video can be "hidden" unless removed from the mounted folder.

Hoping that I could help.