Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23464/include
Modified Files:
functions_entries.inc.php
Log Message:
for "short archives" we only need to title and some other things, but no
body / extended body. This will save some SQL traffic.
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_entries.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- functions_entries.inc.php 25 Nov 2004 17:31:47 -0000 1.8
+++ functions_entries.inc.php 26 Nov 2004 14:10:01 -0000 1.9
@@ -79,11 +79,14 @@
$cond = array();
$cond['orderby'] = $orderby;
if (isset($serendipity['short_archives']) && $serendipity['short_archives']) {
- // In the short listing of all titles for a month, we don't want to have a limit applied.
- $limit = '';
+ // In the short listing of all titles for a month, we don't want to have a limit applied. And we don't need/want toe
+ // full article body (consumes memory)
+ $limit = '';
+ $full = false;
}
if ($full === true) {
+ $noCache = true; // So no entryproperties related to body/extended caching will be loaded
$body = ', e.body, e.extended';
} else {
$body = '';
@@ -234,7 +237,6 @@
$group
ORDER BY {$cond['orderby']}
$limit";
-
$ret = serendipity_db_query($query);
if (is_string($ret)) {
|