WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
06/15/2012 02:42:58 PM (6 years ago)
Author:
cogmios
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20966, comment 5

    v10 v11  
    55Root 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).
    66
    7 Im looking into why it does not set the wp object cache
     7Im 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
     9Somehow user_count IS set (after setting) but can never be getted , when I add
     10
     11
     12{{{
     13if (!(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
     28in the get it always displays "nothing" (while many other site options are in the array available)