Changeset 32528
- Timestamp:
- 05/21/2015 08:21:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r32116 r32528 38 38 * @since 2.0.0 39 39 * 40 * @return boolAlways returns True40 * @return true Always returns True 41 41 */ 42 42 function wp_cache_close() { … … 106 106 * @param bool &$found Whether key was found in the cache. Disambiguates a return of false, a storable value. 107 107 * @return bool|mixed False on failure to retrieve contents or the cache 108 * contents on success108 * contents on success 109 109 */ 110 110 function wp_cache_get( $key, $group = '', $force = false, &$found = null ) { … … 136 136 * 137 137 * @since 2.0.0 138 * @global WP_Object_Cache $wp_object_cache WordPress Object Cache 138 * @global $wp_object_cache WordPress Object Cache instance 139 * @uses WP_Object_Cache 139 140 */ 140 141 function wp_cache_init() { … … 193 194 global $wp_object_cache; 194 195 195 return$wp_object_cache->switch_to_blog( $blog_id );196 $wp_object_cache->switch_to_blog( $blog_id ); 196 197 } 197 198 … … 206 207 global $wp_object_cache; 207 208 208 return$wp_object_cache->add_global_groups( $groups );209 $wp_object_cache->add_global_groups( $groups ); 209 210 } 210 211 … … 240 241 global $wp_object_cache; 241 242 242 return$wp_object_cache->reset();243 $wp_object_cache->reset(); 243 244 } 244 245 … … 500 501 * @param string $group Where the cache contents are grouped 501 502 * @param string $force Whether to force a refetch rather than relying on the local cache (default is false) 502 * @return bool|mixed False on failure to retrieve contents or the cache503 * contents on success503 * @return false|mixed False on failure to retrieve contents or the cache 504 * contents on success 504 505 */ 505 506 public function get( $key, $group = 'default', $force = false, &$found = null ) { … … 617 618 * @param string $group Where to group the cache contents 618 619 * @param int $expire Not Used 619 * @return boolAlways returns true620 * @return true Always returns true 620 621 */ 621 622 public function set( $key, $data, $group = 'default', $expire = 0 ) { … … 707 708 * @since 2.0.8 708 709 * 709 * @return boolTrue value. Won't be used by PHP710 * @return true True value. Won't be used by PHP 710 711 */ 711 712 public function __destruct() {
Note: See TracChangeset
for help on using the changeset viewer.