Changeset 18659 for trunk/wp-includes/cache.php
- Timestamp:
- 09/09/2011 07:59:44 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r18653 r18659 103 103 * @param int|string $key What the contents in the cache are called 104 104 * @param string $group Where the cache contents are grouped 105 * @param bool $force Whether to force an update of the local cache from the persistent cache (default is false) 105 106 * @return bool|mixed False on failure to retrieve contents or the cache 106 107 * contents on success 107 108 */ 108 function wp_cache_get( $key, $group = '') {109 global $wp_object_cache; 110 111 return $wp_object_cache->get( $key, $group);109 function wp_cache_get( $key, $group = '', $force = false ) { 110 global $wp_object_cache; 111 112 return $wp_object_cache->get( $key, $group, $force ); 112 113 } 113 114 … … 404 405 * @param int|string $key What the contents in the cache are called 405 406 * @param string $group Where the cache contents are grouped 407 * @param string $force Whether to force a refetch rather than relying on the local cache (default is false) 406 408 * @return bool|mixed False on failure to retrieve contents or the cache 407 409 * contents on success 408 410 */ 409 function get( $key, $group = 'default') {411 function get( $key, $group = 'default', $force = false) { 410 412 if ( empty ($group) ) 411 413 $group = 'default';
Note: See TracChangeset
for help on using the changeset viewer.