ioBroker / ioBroker.sonos

Control and monitor SONOS player from ioBroker
MIT License
37 stars 20 forks source link

sonosCache directory is constantly filled #222

Open jens-maus opened 8 months ago

jens-maus commented 8 months ago

Describe the bug
Over time the /opt/iobroker/iobroker-data/sonosCache path that contains cached image files seems to be constantly filled up with new cache files. Here it already occupies about 4GB of disk space with the oldest file from Nov 2019 (the time at which this new sonosCache dir had been introduced:

iobroker:~$ du -hs /opt/iobroker/iobroker-data/sonosCache
4.1G    /opt/iobroker/iobroker-data/sonosCache
iobroker:~$ ls -lat /opt/iobroker/iobroker-data/sonosCache | tail -1
-rw-rwxr--+  1 iobroker iobroker    3222 Nov 21  2019 d9d70057837f4af5dd406e75b44f2036

To Reproduce
Steps to reproduce the behavior:

  1. Check the content of your /opt/iobroker/iobroker-data/sonosCache directory
  2. Note that when using iobroker.sonos on a daily basis the content of that sonosCache dir is constantly increasing

Expected behavior
iobroker.sonos should have a mechanism to clear/delete old cache files over time so that it might not fill up systems until they run out of disk space.

Versions:

ch90045 commented 7 months ago

Got the same issue

Apollon77 commented 5 months ago

Ok then question ... which timeframe the cache should hold? Can you please have a look at the cached content and propose something? 1 day? 2 weeks? 4 weeks? 3 months?