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