Phil Meyer;244200 Wrote: 
> Where is the "plugins cache file"?
> 
> Is it "C:\Documents and Settings\All Users\Application
> Data\SqueezeCenter\Cache\plugin-data.yaml" on a PC?
> 
> What is it used for, and could the content get out of date?  If I
> delete the cache file, would there be any noticeable effect the next
> time the server is run up (other than performance)?
> 
> Phil

I often find that I have to delete this file with SC7 to get new
plug-ins to "register" i.e. to show up.  This is the file where plugin
settings are stored, I think.  The only downside to deleting this file
is that any plug-ins you may have disabled will be enabled on restart
and you may have lost some plug-in specific settings.

My regular svn update routine deletes a number of items from the Cache
dir: Artwork, FileCache, templates, stringcache, plugin-data.yaml.  I'm
not noticing any ill effects and service startup time (after the cache
purging) is totally acceptable even on my low-powered linux
box...really its just a few seconds longer than a normal start.

Code:
--------------------
    
  #!/bin/sh
  #shutdown slimserver
  /sbin/service slimserver stop
  
  #update slimserver code
  /bin/echo 'Updating Slimserver..'
  /usr/bin/svn up /usr/local/slimserver_trunk >>/var/log/slimserver/svn.log
  #/bin/echo 'Logging code changes..'
  #/usr/bin/svn log -r HEAD -v /usr/local/slimserver_trunk 
>>/var/log/slimserver/svn.log
  /bin/echo 'Fixing permissions..'
  /bin/chown -R slimserver:slimserver /usr/local/slimserver_trunk
  
  #delete the slimserver cache
  /bin/echo 'Deleting Slimserver cache files..'
  cd /usr/local/slimserver_trunk/server/Cache
  rm -R --force Artwork
  rm -R --force FileCache
  rm -r --force templates
  rm --force plugin-data.yaml
  rm --force stringcache
  
  #restart slimserver
  /sbin/service slimserver start
  /bin/echo 'Done!'
--------------------

But, I'll probably now comment out the deleting of plugin-data.yaml
since it's a pain to have to go and re-disable all those unneeded
plug-ins after every svn up.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=40426

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to