recently, i started to wipe cache folder before update
step done:
stop plex,wipe cache folder,restart plex and then run backup script(because it need plex in running state, the script will kill plex by itself as it’s 1st step)
Now you have the complete detail of situation, is it safe to delete cache folder often? do i risk to lose something?
after i delete cache and restart plex, only thing i notice is: 1st time i search something, the poster(cover art) take a second to show…but it usually fix automatically after 1 or 2 days. again, everything normal? can i continue to wipe cache folder? the main reason is to speed up backup process.
i don’t use customized poster/arts or something like that
in the end, what exactly “cache” folder do, and is it important?(why?)
Simply tell the backup script to not copy the cache folder.
Directive "ExcludeDirs"
A cache in computers is a storage space for items which need to be accessed fast. The items are originally either stored on slower storage, or in Plex’s case are stored in a larger resolution. So to avoid the server to have scale down dozens or even hundreds of pictures when browsing the library, the downscaled versions of cover art and posters are put into the cache folder.
TL;DR: it is a method to trade storage space for computing time.
I haven’t tried that myself. There might be issues if you use to use the “upload” method in the plex app. (Instead of putting the posters beside the media files)
FWIW, according to the guy who makes that PowerShell backup script, if you exclude or delete the cache folder you could possibly lose all your custom posters and artwork:
I’m pretty sure the Cache folder is needed unless you want to redo all poster art, etc.
I’ve never tested this, just mentioning it in case that’s a concern.