クラス WP_Object_Cache::set()
2015/01/10
WP_Object_Cache::set()
定義ファイル :/blog/wp-includes/cache.php
1 2 3 4 5 6 7 8 9 10 11 12 13 | public function set( $key, $data, $group = 'default', $expire = 0 ) { if ( empty( $group ) ) $group = 'default'; if ( $this->multisite && ! isset( $this->global_groups[ $group ] ) ) $key = $this->blog_prefix . $key; if ( is_object( $data ) ) $data = clone $data; $this->cache[$group][$key] = $data; return true; } |