[Slashdotjp-dev 864] [381] * Fix memcached keyname to get/set stories for correct skin

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 12月 28日 (金) 17:05:13 JST


Revision: 381
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=381
Author:   tach
Date:     2007-12-28 17:05:13 +0900 (Fri, 28 Dec 2007)

Log Message:
-----------
 * Fix memcached keyname to get/set stories for correct skin
   *** THIS FIX IS AD-HOC AND PLEASE USE CAREFULLY ***

Modified Paths:
--------------
    slashjp/trunk/Slash/DB/MySQL/MySQL.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/DB/MySQL/MySQL.pm
===================================================================
--- slashjp/trunk/Slash/DB/MySQL/MySQL.pm	2007-12-27 16:59:57 UTC (rev 380)
+++ slashjp/trunk/Slash/DB/MySQL/MySQL.pm	2007-12-28 08:05:13 UTC (rev 381)
@@ -6829,7 +6829,11 @@
 	# mcdkey now because, even if we can't read from the cache, we may
 	# be able to write into it later.)
 	my $mcdkey;
-	$mcdkey = "$self->{_mcd_keyprefix}:gse:$tid->[0]:$the_minute" if $mcd;
+	# *** THIS FIX IS AD-HOC AND PLEASE USE CAREFULLY ***
+	# $tid->[0] is the young number of tids, threfore sometimes it is
+	# different from $gSkin->{nexus}.
+	#$mcdkey = "$self->{_mcd_keyprefix}:gse:$tid->[0]:$the_minute" if $mcd;
+	$mcdkey = "$self->{_mcd_keyprefix}:gse:$gSkin->{nexus}:$the_minute" if $mcd;
 	my $try_mcd = ($mcd
 		&& !$tid_extras
 		&& $offset == 0

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2007-12-27 16:59:57 UTC (rev 380)
+++ slashjp/trunk/debian/changelog	2007-12-28 08:05:13 UTC (rev 381)
@@ -1,3 +1,10 @@
+slash (2.5.0.188-4) unstable; urgency=low
+
+  * Fix memcached keyname to get/set stories for correct skin
+    *** THIS FIX IS AD-HOC AND PLEASE USE CAREFULLY ***
+
+ -- Taku YASUI <tach****@osdn*****>  Fri, 28 Dec 2007 17:01:15 +0900
+
 slash (2.5.0.188-3) unstable; urgency=low
 
   * Suppress "Use of uninitialized value" when running tasks/daemons at


Slashdotjp-dev メーリングリストの案内
Back to archive index