Is there a need to wipe the cache database in a running LMS ?
The current "need" arises after a change to a plugin which necessitates
a LMS restarts - can clearing the cache.db be an option as part of LMS
restart ?

Would require a code change, of course. But is it worth it? There's rarely need to do so. If the file is corrupted, then this won't help anyway.

Plugins can use their own cache file. This would allow it to invalidate it whenever it wants by bumping the cache version number. This unfortunately is not possible for the main cache. Eg. that modifiec plugin could use Slim::Utils::Cache->new('myplugin', 1) instead of just Slim::Utils::Cache->new() wherever it does get a handle to the cache. The 1 in the call then could be upped whenever needed to invalidate previously cached values.

--

Michael
_______________________________________________
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to