Feature Move "Clear Cache" to the configurator

 
no supporters

User’s should be able to clear the cache from the configurator. This should also ensure that MB is already closed. It will also enable to long standing bug where cache will not cleared properly via the GUI to be closed off and that functionality to be removed. It makes no sense being in the GUI since you are immediately directed back to WMC anyway.

There is also a lot of confusion for me anyway about what to manually clear even though there is an KB article on the subject. This could be address here by ensuring only what the user requires to be removed actually is. This could be done by a yes or no with a brief explanation of each option.

For example – User selects clear cache. A pop-up window appears for each folder within the cache directory and a brief explanation is in the pop-up like “You are about to clear the ‘display’ cache. This cache contains information about what view settings are used for your media collections and their various sub-levels. All folder display settings will be lost. Are you sure you want to continue?”

 
  • I like it. I would add my support if I had another wish… – FlyGuyAZ about 2 years ago
votes newest oldest
 
  • Created:about 2 years ago

I agree. It would solve the current limitation of the “Clear Cache” function as indicated in this topic.

A little design mockup is in the design tab.

 
 
  • Created:about 2 years ago

Yeah approved, with a caveat, I really wish stuff was designed in such a way that clearing cache was a very rare thing.

We need to make this an advanced feature in configurator so most people do not see it.

 
  • Of course :) but even then it would still be a handy feature for us tweakers/testers out there. – birkoff about 2 years ago
 
  • Created:about 2 years ago

Why is the imagecache in a different folder to the rest of the cache? Why not include that within cache, \cache\Images for example? I suppose with this implementation the location does not really matter but I always find myself wondering if whenever someone advised users to clear cache whether they mean this one too.

 
  • the reason is that originals of downloaded content are in there, that can be fairly big and usually you do not want to re-download … – sam about 2 years ago
 
  • Created:about 2 years ago

Someone want to give this a quick test…

 
  • Perfect! Works like a champ! My only comment would be to reword the Items section just slightly to be a bit more clear about what Items is. – ulrick65 about 2 years ago
  • Do you have any suggestions? Not sure how elese to explain it… – ebr about 2 years ago
  • I don’t know, I am not that good at describing stuff. I just think new folks might think it is going to delete something they don’t want to delete. How about something like this: “This option will clear out the stored information about all the Media in your collection (titles, descriptions, cast, etc.) – causing the data to be rebuilt from local metadata or internet providers, depending on your setup. This only clears the cache, not your local data.” – ulrick65 about 2 years ago
 
  • Created:about 2 years ago

Someone want to give this a quick test…

  • deleting the playstate cache results in the entire folder to be deleted instead of the contents. Is that the way it should be? The other folders are emptied, but not deleted.
  • clearing the display doesn’t do anything. The folder still contains items.
  • the autoplaylists folder doesn’t seem to be affected by any of the options. even marking them all doesn’t empty that folder.
 
 
  • Created:about 2 years ago

For some reason, the playstate folder acts differently than the others. I cannot figure out why. Sometimes there is an error re-creating it (actually all the folders are deleted and then re-created). One of my machines had problems and the other one didn’t.

I forgot to implement display, try it again…

I don’t delete the auto playlists. Can’t see any reason to mess with that…

 
 
  • Created:about 2 years ago

For some reason, the playstate folder acts differently than the others. I cannot figure out why. Sometimes there is an error re-creating it (actually all the folders are deleted and then re-created). One of my machines had problems and the other one didn’t.

At first I thought I had a permissions issue, since I did still see the playstate folder after it was cleared, but I couldn’t access it. All permissions were gone. Only after restarting explorer 3 times the folder actually disappeared.

Why not delete all files in the folders instead of deleting the folders themselves?

Deleting the folders could cause issues if people use junction points for them for a solution like this. (Someone should also test this that actually has a shared playstate…)

I forgot to implement display, try it again…

Updated version works.

I don’t delete the auto playlists. Can’t see any reason to mess with that…

Fair enough. Just reported it :)

 
 
  • Created:about 2 years ago
  • Modified:about 2 years ago

Why not delete all files in the folders instead of deleting the folders themselves?

.NET doesn’t provide a method to delete all files in a folder easily. I would have to actually iterate through them all. With a cache folder with potentially tens of thousands of items, I didn’t want to do that. Maybe I can do it for just the display and playstate ones…

[edit] Okay, I changed the playstate and display routines to iterate through files instead of blowing the directory. Please re-download and see if it behaves better.

 
  • I didn’t know that. I ran the latest one and everything goes perfect. It gave an error that it couldn’t clear the cache at first, but that was because the playstate folder was still missing. after launching MB it ran ok. – birkoff about 2 years ago
  • Yes, I noticed this as well with Items folder. I've been using SQL lite and that folder did not exist when I ran the new version with clear added. Although benign, it throws a fairly ominous exception to the MB log. I'm not sure if you can clean that up any when the folder you're trying to clear isn’t there. – sinjen about 2 years ago
  • I'm sure I can clean it up. Just never occurred to me that the Items folder wouldn’t be there. – ebr about 2 years ago
  • Okay, I fixed that issue and also removed the clear cache button from the config page in MB proper. – ebr about 2 years ago