Ticket #23058: 23058.2.patch
| File 23058.2.patch, 1.6 KB (added by ocean90, 5 months ago) |
|---|
-
wp-includes/cache.php
19 19 * @param mixed $data The data to add to the cache store 20 20 * @param string $group The group to add the cache to 21 21 * @param int $expire When the cache data should be expired 22 * @return unknown22 * @return bool False if cache key and group already exist, true on success 23 23 */ 24 24 function wp_cache_add($key, $data, $group = '', $expire = 0) { 25 25 global $wp_object_cache; … … 85 85 * @uses $wp_object_cache Object Cache Class 86 86 * @see WP_Object_Cache::flush() 87 87 * 88 * @return bool Always returns true88 * @return bool False on failure, true on success 89 89 */ 90 90 function wp_cache_flush() { 91 91 global $wp_object_cache; … … 152 152 * @param mixed $data The contents to store in the cache 153 153 * @param string $group Where to group the cache contents 154 154 * @param int $expire When to expire the cache contents 155 * @return bool False if cache key and group already exist, true on success155 * @return bool False if not exists, true if contents were replaced 156 156 */ 157 157 function wp_cache_replace($key, $data, $group = '', $expire = 0) { 158 158 global $wp_object_cache; … … 171 171 * @param mixed $data The contents to store in the cache 172 172 * @param string $group Where to group the cache contents 173 173 * @param int $expire When to expire the cache contents 174 * @return bool False if cache key and group already exist, true on success174 * @return bool False on failure, true on success 175 175 */ 176 176 function wp_cache_set($key, $data, $group = '', $expire = 0) { 177 177 global $wp_object_cache;
