| 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) |