Make WordPress Core


Ignore:
Timestamp:
06/08/2007 12:20:22 AM (19 years ago)
Author:
ryan
Message:

Comment caching. Reduce queries on edit-comments.php page. Add non-persistent cache groups. Hat tip to hovenko. fixes #4387

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r5544 r5666  
    6464    var $non_existant_objects = array ();
    6565    var $global_groups = array ('users', 'userlogins', 'usermeta');
     66    var $non_persistent_groups = array('comment');
    6667    var $blog_id;
    6768    var $cold_cache_hits = 0;
     
    309310        $errors = 0;
    310311        foreach ($this->dirty_objects as $group => $ids) {
     312            if ( in_array($group, $this->non_persistent_groups) )
     313                continue;
     314
    311315            $group_dir = $this->make_group_dir($group, $dir_perms);
    312316
Note: See TracChangeset for help on using the changeset viewer.