AbracaDABra icon indicating copy to clipboard operation
AbracaDABra copied to clipboard

option to delete cache at startup

Open nona00 opened this issue 1 year ago • 11 comments

for analyzing EPG it would be great to have an option to delete the cache at startup of the application

nona00 avatar Sep 28 '24 10:09 nona00

Why don't you use a script to delete it for you?

andimik avatar Sep 28 '24 12:09 andimik

Good question! @nona00 any comment?

KejPi avatar Oct 06 '24 19:10 KejPi

yes this would be possible, but settings in the app to define the cache age for slideshow and spi data would be fine

nona00 avatar Oct 06 '24 20:10 nona00

Slideshow has no cache, only SPI data is cached. This includes service logos and EPG. I agree with @andimik that you should delete cache by script if you want, I do not think that this is a feature that others want. I might consider implementing this feature as command line switch - would it fit your use case?

KejPi avatar Oct 06 '24 20:10 KejPi

yes, a command line switch would be great

nona00 avatar Oct 06 '24 22:10 nona00

I don't think this feature will have more than one user.

andimik avatar Oct 07 '24 05:10 andimik

But if you really want that feature for analysis of the SPI, I recommend you to store all SPI files to the drive, see settings menu. Each time, the content changes, you will see a new folder, and you still can browse the old folder and its content.

andimik avatar Oct 07 '24 05:10 andimik

That is very good point! @nona00 what exactly do you want to do?

KejPi avatar Oct 07 '24 06:10 KejPi

We had some issues with ODR Bridge EPG creator. For different iq recordings I want to check if all logos are received correctly and not that cached data is used. I already enabled storing of SPI files, but then I have to clear cache and download folder.

If nobody else needs this feature I can also create a batch for me.

nona00 avatar Oct 07 '24 13:10 nona00

Using SPI data storage is anyway better approach because this way all SPI objects are stored (all logos, binary encoded xml files and decoded version of it and anything else that might be broadcasted in MOT directory) while application stores in its cache only logos 32x32 and 320x240.

KejPi avatar Oct 07 '24 13:10 KejPi

Yes, @KejPi is right. I recommend to save SPI.

andimik avatar Oct 07 '24 16:10 andimik