Changeset 1794

Show
Ignore:
Timestamp:
04/07/08 23:09:01 (8 months ago)
Author:
bchoate
Message:

Eliminate additional comment/ping count caching since they're in the entry record now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/php/lib/mtdb_base.php

    r1777 r1794  
    809809            $id_list[] = $e['entry_id']; 
    810810            $entries[] = $e; 
     811            $this->_comment_count_cache[$e['entry_id']] = $e['entry_comment_count']; 
     812            $this->_ping_count_cache[$e['entry_id']] = $e['entry_ping_count']; 
    811813            if (($limit > 0) && (count($entries) >= $limit)) break; 
    812814        } 
     
    925927        if (count($id_list) <= 30) { # TODO: find a good upper limit 
    926928            # pre-cache comment counts and categories for these entries 
    927             $this->cache_comment_counts($id_list); 
    928             $this->cache_ping_counts($id_list); 
    929929            $this->cache_categories($id_list); 
    930930            $this->cache_permalinks($id_list);