Page 1 of 1

A way to clear old Cache files?

Posted: September 16th, 2008, 7:53 pm
by MajorHavoc
I am looking for a way to know which old cache files I can delete. There were a number of downloads that were partially completed and I changed my mind, so I deleted them. But it seems, and rightfully so perhaps, that their cache files do not get deleted when I delete a queue entry (I might change my mind again maybe?) And I must admit, I have done this a few too many times I am sure.

Also, I have rearranged my queue to change download order, and some partial downloads are now waiting for that queue item to start again.

But I have a LOT of unneeded cache files, but I do not know which ones to delete because their names do not indicate for which queue item they belong.

So, I have a request or two for future updates:
1) A purge cache command. This should delete all cache files for which there is no longer any queue item for them. This should keep partially downloaded items cache files since they will be needed when that item moves to the top.
2). Possible name the cache file with part of the download name so it can be easily found, or keep them in separate NAMED folders like the PARS are?
3). Clear old PAR files. Like number 1, simply delete any files left over. This is less critical as they are easy to find, but would be helpful.

IN the meantime, how can I know which of the old cache files I can now toss?

Thanks.

Re: A way to clear old Cache files?

Posted: September 17th, 2008, 11:42 am
by shypike
First of all, these problems have already been submitted as Ticket #14 and #48.
So they have our attention.

In the mean time: when your queue is empty you can safely delete all files
in the queue folder beginning with SABnzbd_.
So in a batch file:

Code: Select all

del /q d:\BLABLA\cache\SABnzbd_*
Aborted jobs also leave a folder in the "incomplete" folder. You can delete such a folder.

Re: A way to clear old Cache files?

Posted: September 19th, 2008, 2:33 am
by MajorHavoc
My bad, was not sure how to scan the tickets to know if this was addressed, so thanks. (Can I scan tickets?)

I was just making some suggestions that would help me, because my queue is so long, it never seems to empty.

I did delete all old, will wait for errors as the queue empty, and just reload those files.

ACK on the queue folder, that too was just an interface suggestion, as I said, I was not really a problem.

Thanks

Re: A way to clear old Cache files?

Posted: September 19th, 2008, 3:54 am
by shypike
My bad
It wasn't meant as reproach, just that it already has our attention.
MajorHavoc wrote: Can I scan tickets?
You can see the tickets at: http://trac2.assembla.com/SABnzbd/report/3
They're read-only.

Re: A way to clear old Cache files?

Posted: September 19th, 2008, 10:19 am
by MajorHavoc
No offense taken. Thanks.