LinHES Forums
http://forums.linhes.org/

themecache is not purging art when programs are deleted.
http://forums.linhes.org/viewtopic.php?f=21&t=24246
Page 1 of 1

Author:  TVBox [ Fri Nov 06, 2015 9:32 pm ]
Post subject:  themecache is not purging art when programs are deleted.

When I installed LinHES 8.3 I has plenty of hard drive so I added a extra gig of space to the /home partition (2.87 GB). Now I noticed that that partition is 98% full.
Here are some of the largest folders

/home/mythtv/.kodi/userdata/Thumbnails (351.72 MB) (this file appears normal to me)
/home/mythtv/.cache/google-chrome (206.28 MB) (this file appears normal to me)
/home/mythtv/.mythtv/remotecache (244 MB) (3105 files) (old GUI art not deleting)
/home/mythtv/.mythtv/themecache/LinHES.1280.720 (326.61 MB) (2572 files) (old GUI art not deleting)
/home/mythtv/.mythtv/themecache/LinHES.1920.1080 (1.02 GB) (4967 files) (old GUI art not deleting)

Dos anyone know if there is a maintenance program that purges these files?
Dos anyone know if they can just be deleted?
At this rate I am looking at a system crash in about a week.
Any suggestions here?

Author:  brfransen [ Sat Nov 07, 2015 11:09 am ]
Post subject:  Re: themecache is not purging art when programs are deleted.

I don't think there is anything in LH or myth that will automatically prune those caches. Maybe a monthly maintenance task is in order. You can delete them with something like:
Code:
rm -rf /home/mythtv/.mythtv/{*cache,Cache-*}
Just make sure that you restart mythfrontend right after running that cmd.

Also, since /home is on its own partition seperate from the os it being full shouldn't cause a system crash. But mythfrontend does act pretty wonky when home is full.

Author:  mattbatt [ Mon Nov 09, 2015 11:46 am ]
Post subject:  Re: themecache is not purging art when programs are deleted.

Yeah I always give those partitions more room than the recommended minimums.

Author:  TVBox [ Tue Nov 17, 2015 6:36 am ]
Post subject:  Re: themecache is not purging art when programs are deleted.

It been about a week since I ran brfranson's code (Thank you!)
The cache should be repopulated by now so I thought I would post some results.

/home partition (2.87 GB). 98% Before
/home partition ( .9 GB). 35% After

/home/mythtv/.mythtv/remotecache (244 MB) (3105 files) Before
/home/mythtv/.mythtv/remotecache (32 MB) (416 files) After

/home/mythtv/.mythtv/themecache/LinHES.1280.720 (326.61 MB) (2572 files) Before
/home/mythtv/.mythtv/themecache/LinHES.1280.720 (141 MB) (1172 files) After

/home/mythtv/.mythtv/themecache/LinHES.1920.1080 (1.02 GB) (4967 files) Before
This file was not recreated. At this time I have a 720 TV attached

/home/mythtv/.cache/google-chrome (206 MB) Before
/home/mythtv/.cache/google-chrome (116 MB) After
I manually deleted this file. I was not necessary but it bought me some time.

Author:  brfransen [ Tue Nov 17, 2015 7:22 am ]
Post subject:  Re: themecache is not purging art when programs are deleted.

I added a check to myth_mtc.py to look at /home and if it is greater than 90% full it will remove the mythtv caches. The chrome cache does a pretty good job of cleaning itself from what I have seen so I didn't include it. This check is part of LinHES-system-8.3-19 and later.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/