Plex-Movie-Poster-Display icon indicating copy to clipboard operation
Plex-Movie-Poster-Display copied to clipboard

Enhancement: Cache Config Options

Open ZeroCoolGOS opened this issue 3 years ago • 8 comments

Create a config options to be used to control the config paths more.

Allow to custom change paths for individual cache types and to Enable/Disable 24hr cache cleanup.

ZeroCoolGOS avatar Mar 21 '21 01:03 ZeroCoolGOS

@ZeroCoolGOS Excellent job on all of the cache options. After update, the only field that was blank for me on the Common Configuration > Cache Configuration was the Location for Custom Fonts, should i type in the field box "cache/fonts/" ? Similar to what is shown in the other fields on that page... See screenshot: https://i.imgur.com/gDoCkXw.png

titelies avatar Mar 23 '21 03:03 titelies

Yes. That is because your config does not have that field.

I will look at putting defaults in the fields for next time.

ZeroCoolGOS avatar Mar 23 '21 03:03 ZeroCoolGOS

@ZeroCoolGOS It doesn't seem like the Clear Cache for Art works me. I click the button but all of the background art remains in the folder. When I Clear Cache for posters, it empties that folder. Also notice the colors of the buttons are different for Background Art and Logs. I have not tried Clearing Cache for Logs cause I wasn't sure if those were important in some way... https://i.imgur.com/JiZcAoh.png

titelies avatar Mar 24 '21 02:03 titelies

Ah yes.

The different color indicated that these buttons are disabled.

I guess I forgot to enable them.

I will do a quick fix tonight to enable them.

Also the logs are not important. Just used for debugging. I have left them on by default but I can turn them off if need be.

ZeroCoolGOS avatar Mar 24 '21 02:03 ZeroCoolGOS

I corrected the field that was blank for me on the Common Configuration > Cache Configuration > Location for Custom Fonts, I added cache/fonts/ in the field box, it clears all the fonts from my Font Configuration page, but in the /cache/fonts/ directory, all of the folders and files remains. Does that seem correct @ZeroCoolGOS

titelies avatar Mar 25 '21 21:03 titelies

@titelies That does not sound correct.

I see that it does not clear the folders (a bug I will look into), but it should clear the fonts.

That is odd that its not clearing it for you.

ZeroCoolGOS avatar Mar 26 '21 01:03 ZeroCoolGOS

@ZeroCoolGOS Oh OK. It cleared the files inside the folders but not the folders. No worries, I deleted them manually. I now understand how it works. Thanks for the info.

titelies avatar Mar 26 '21 01:03 titelies

Well how it should work is clear out the folders too, but that is not working so I will try and fix it in the next build.

ZeroCoolGOS avatar Mar 26 '21 01:03 ZeroCoolGOS