[Slim-Checkins] r33684 - /7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm

[email protected]
Newsgroups gmane.music.equipment.slimdevices.cvs
Message-ID <[email protected]>
Author: mherger
Date: Thu Nov 10 07:21:14 2011
New Revision: 33684

URL: http://svn.slimdevices.com/slim?rev=33684&view=rev
Log:
Bug: n/a
Description: we can't set expiry time to >30d. Values larger than 60*60*24*30 (30 days) are considered absolute unix timestamps by the caching code.

Modified:
    7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm

Modified: 7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm
URL: http://svn.slimdevices.com/slim/7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm?rev=33684&r1=33683&r2=33684&view=diff
==============================================================================
--- 7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm (original)
+++ 7.7/trunk/server/Slim/Plugin/Extensions/Plugin.pm Thu Nov 10 07:21:14 2011
@@ -388,7 +388,7 @@
 
 		my $cache = Slim::Utils::Cache->new;
 		
-		$cache->set( $args->{'name'} . '_XML', $xml, '5m' );
+		$cache->set( $args->{'name'} . '_XML', $xml, 86400 * 30 );
 	}
 
 	_parseXML($args, $xml);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.