svnno****@sourc*****
svnno****@sourc*****
2008年 1月 23日 (水) 16:50:27 JST
Revision: 458 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=458 Author: tach Date: 2008-01-23 16:50:26 +0900 (Wed, 23 Jan 2008) Log Message: ----------- Change to delete neverdisplay stories from story_dirty Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/themes/slashcode/tasks/freshenup.pl -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2008-01-23 05:38:52 UTC (rev 457) +++ slashjp/trunk/debian/changelog 2008-01-23 07:50:26 UTC (rev 458) @@ -1,8 +1,9 @@ slash (2.5.0.189-3) unstable; urgency=low * Exit init.d script when slashd daemon does not exist + * Change to delete neverdisplay stories from story_dirty - -- Taku YASUI <tach****@debia*****> Wed, 23 Jan 2008 03:41:20 +0900 + -- Taku YASUI <tach****@osdn*****> Wed, 23 Jan 2008 16:49:44 +0900 slash (2.5.0.189-2) unstable; urgency=low Modified: slashjp/trunk/themes/slashcode/tasks/freshenup.pl =================================================================== --- slashjp/trunk/themes/slashcode/tasks/freshenup.pl 2008-01-23 05:38:52 UTC (rev 457) +++ slashjp/trunk/themes/slashcode/tasks/freshenup.pl 2008-01-23 07:50:26 UTC (rev 458) @@ -85,6 +85,15 @@ } ############################################################ + # delete neverdisplay stories from story_dirty + ############################################################ + + if ($do_all && my $count = $slashdb->sqlDelete("story_dirty USING story_dirty, story_param", + "story_dirty.stoid=story_param.stoid AND story_param.name='neverdisplay' AND story_param.value=1")) { + slashdLog("Deleted $count neverdisplay stories from story_dirty") if verbosity() >= 1; + } + + ############################################################ # users_count update (memcached and var) ############################################################