Last active
May 25, 2017 12:02
-
-
Save radist2s/b533723e8af01a58ad967edfeade83a0 to your computer and use it in GitHub Desktop.
wp_cache_delete_group function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_cache_delete_group($group) | |
{ | |
/** @type WP_Object_Cache $wp_object_cache */ | |
global $wp_object_cache; | |
$cache = $wp_object_cache->cache; | |
if (isset($cache[$group])) | |
{ | |
unset($cache[$group]); | |
$wp_object_cache->cache = $cache; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment