[Cpan-forum-commit] rev 224 - in trunk: . lib/CPAN/Forum/RM templates

svn at pti.co.il svn at pti.co.il
Fri Sep 1 12:10:16 IDT 2006


Author: gabor
Date: 2006-09-01 12:10:16 +0300 (Fri, 01 Sep 2006)
New Revision: 224

Modified:
   trunk/
   trunk/lib/CPAN/Forum/RM/Other.pm
   trunk/templates/stats.tmpl
Log:
remove user stats as query took too long



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11112
   + 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11113

Modified: trunk/lib/CPAN/Forum/RM/Other.pm
===================================================================
--- trunk/lib/CPAN/Forum/RM/Other.pm	2006-09-01 09:10:11 UTC (rev 223)
+++ trunk/lib/CPAN/Forum/RM/Other.pm	2006-09-01 09:10:16 UTC (rev 224)
@@ -39,10 +39,12 @@
     my $self = shift;
     my $t = $self->load_tmpl("stats.tmpl");
     my @groups = CPAN::Forum::DB::Posts->search_stat_posts_by_group(50);
-    my @users  = CPAN::Forum::DB::Posts->search_stat_posts_by_user(10);
-    
+    #my @users  = CPAN::Forum::DB::Posts->search_stat_posts_by_user(10);
+    #
+    # TODO: user stats removed as it was extreamly slow..
+    #     
     $t->param(groups => \@groups);
-    $t->param(users  => \@users);
+    #$t->param(users  => \@users);
     $t->output;
 }
 

Modified: trunk/templates/stats.tmpl
===================================================================
--- trunk/templates/stats.tmpl	2006-09-01 09:10:11 UTC (rev 223)
+++ trunk/templates/stats.tmpl	2006-09-01 09:10:16 UTC (rev 224)
@@ -13,14 +13,16 @@
 </table>
 </div>
 
-<div class="about_list">
-<p class="about_title">10 most active users (number of posts)</p>
-<table>
-<TMPL_LOOP users>
-  <tr><td><a href="/users/<TMPL_VAR username>"><TMPL_VAR username></a></td><td><TMPL_VAR cnt></td></tr>
-</TMPL_LOOP>
-</table>
-</div>
+<TMPL_IF users>
+    <div class="about_list">
+    <p class="about_title">10 most active users (number of posts)</p>
+    <table>
+    <TMPL_LOOP users>
+      <tr><td><a href="/users/<TMPL_VAR username>"><TMPL_VAR username></a></td><td><TMPL_VAR cnt></td></tr>
+    </TMPL_LOOP>
+    </table>
+    </div>
+</TMPL_IF>
 
 <TMPL_INCLUDE NAME="footer.tmpl">
 



More information about the Cpan-forum-commit mailing list