WordPress.org

Make WordPress Core

Changes between Version 11 and Version 12 of Ticket #20966, comment 5


Ignore:
Timestamp:
06/15/2012 03:15:53 PM (6 years ago)
Author:
cogmios
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20966, comment 5

    v11 v12  
    33It happens on http://(url)/wp-admin/network/update-core.php where the version check takes place or every site admin page if the check hasnt runt.
    44
    5 Root cause is that the cache is not set for user_count in other words it does not appear in the site_options cache (but it is in the db).
    6 
    7 Im looking into why it does not set the wp object cache, The problem lies in wp_object_cache: In "get" when not found it returns false which in turn leading to passing the integer in options.
    8 
    9 Somehow user_count IS set (after setting) but can never be getted , when I add
    10 
    11 
    12 {{{
    13 if (!(strpos($key,'user') === false)) {
    14                         echo "GET: ";
    15                         echo "looking for " . $key . " in " . $group;
    16                         if ( $this->_exists( $key, $group ) ) {
    17                                 echo $key . " = ";
    18                                 echo $this->cache[$group][$key]. "(";
    19                                 echo $group . ")";
    20                                 var_dump($this->cache);
    21                                 echo "<hr>";
    22                         }  else {
    23                                 echo "nothing<hr>";
    24                         }                       
    25                 }
    26 }}}
    27 
    28 in the get it always displays "nothing" (while many other site options are in the array available)