WordPress.org

Make WordPress Core

Ticket #23058: 23058.patch

File 23058.patch, 1.4 KB (added by ocean90, 16 months ago)
  • wp-includes/cache.php

     
    1919 * @param mixed $data The data to add to the cache store 
    2020 * @param string $group The group to add the cache to 
    2121 * @param int $expire When the cache data should be expired 
    22  * @return unknown 
     22 * @return bool False if cache key and group already exist, true on success 
    2323 */ 
    2424function wp_cache_add($key, $data, $group = '', $expire = 0) { 
    2525        global $wp_object_cache; 
     
    152152 * @param mixed $data The contents to store in the cache 
    153153 * @param string $group Where to group the cache contents 
    154154 * @param int $expire When to expire the cache contents 
    155  * @return bool False if cache key and group already exist, true on success 
     155 * @return bool False if not exists, true if contents were replaced 
    156156 */ 
    157157function wp_cache_replace($key, $data, $group = '', $expire = 0) { 
    158158        global $wp_object_cache; 
     
    171171 * @param mixed $data The contents to store in the cache 
    172172 * @param string $group Where to group the cache contents 
    173173 * @param int $expire When to expire the cache contents 
    174  * @return bool False if cache key and group already exist, true on success 
     174 * @return bool False on failure, true on success 
    175175 */ 
    176176function wp_cache_set($key, $data, $group = '', $expire = 0) { 
    177177        global $wp_object_cache;