Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25401/plugins/serendipity_event_karma
Modified Files:
serendipity_event_karma.php
Log Message:
The entrycat table needs a key, or else the fetchEntries() function will
perform extremely slowly. On my blog with 390 entries the query was taking
12 seconds, which is now reduced to about 0.8 seconds...
Index: serendipity_event_karma.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_karma/serendipity_event_karma.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- serendipity_event_karma.php 14 Jun 2004 11:40:17 -0000 1.6
+++ serendipity_event_karma.php 18 Jun 2004 09:04:25 -0000 1.7
@@ -467,6 +467,8 @@
return true;
}
+ if (!is_array($eventData)) return;
+
$karmatime = $this->get_config('max_karmatime', 7);
$max_karmatime = $karmatime * 24 * 60 * 60;
$now = time();
|