Make WordPress Core

Ticket #21327: cache_delete_fix.patch

File cache_delete_fix.patch, 757 bytes (added by bananastalktome, 11 years ago)
  • wp-includes/cache.php

     
    7070 *
    7171 * @param int|string $key What the contents in the cache are called
    7272 * @param string $group Where the cache contents are grouped
     73 * @param bool $force Optional. Whether to force the unsetting of the cache
     74 *              key in the group
    7375 * @return bool True on successful removal, false on failure
    7476 */
    75 function wp_cache_delete($key, $group = '') {
     77function wp_cache_delete($key, $group = '', $force = false) {
    7678        global $wp_object_cache;
    7779
    78         return $wp_object_cache->delete($key, $group);
     80        return $wp_object_cache->delete($key, $group, $force);
    7981}
    8082
    8183/**