[Slashdotjp-dev 1182] [709] * Improve "polls/rss" performance using rss cache

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 7月 18日 (金) 13:18:25 JST


Revision: 709
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=709
Author:   tach
Date:     2008-07-18 13:18:25 +0900 (Fri, 18 Jul 2008)

Log Message:
-----------
 * Improve "polls/rss" performance using rss cache
   - Use variable "rss_cachedir"
   - cache creating task is not included in slash distribution

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-18 03:12:03 UTC (rev 708)
+++ slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-18 04:18:25 UTC (rev 709)
@@ -614,6 +614,10 @@
 		my @args = ($query);
 		if ($word =~ /^rss$/) {
 			push @args, "content_type=rss";
+			if ($constants->{rss_cachedir} && -r "$constants->{rss_cachedir}/pollBooth.rss") {
+				$r->filename("$constants->{rss_cachedir}/pollBooth.rss");
+				return OK;
+			}
 		} elsif ($word =~ /^(\d+)$/) {
 			push @args, "qid=$1";
 		}

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-07-18 03:12:03 UTC (rev 708)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-07-18 04:18:25 UTC (rev 709)
@@ -23,8 +23,11 @@
     - redirect to shtml internally
   * Add feature to change query string form name for search.pl
     - Use variable "search_query_name"
+  * Improve "polls/rss" performance using rss cache
+    - Use variable "rss_cachedir"
+    - cache creating task is not included in slash distribution
 
- -- Taku YASUI <tach****@osdn*****>  Thu, 17 Jul 2008 11:29:47 +0000
+ -- Taku YASUI <tach****@osdn*****>  Fri, 18 Jul 2008 04:16:34 +0000
 
 slash (2.5.0.192-15) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl
===================================================================
--- slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl	2008-07-18 03:12:03 UTC (rev 708)
+++ slashjp/branches/2.5.0.192/plugins/PollBooth/pollBooth.pl	2008-07-18 04:18:25 UTC (rev 709)
@@ -563,7 +563,7 @@
 		items			=> $items,
 		rdfitemdesc		=> $constants->{dfitemdesc},
 		rdfitemdesc_html	=> $constants->{dfitemdesc_html} || 1,
-	}, $form->{ssi});
+	}, $form->{ssi} ? 1 : 0);
 	print "$ret\n" if ($form->{ssi});
 }
 


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る