Created
September 17, 2013 16:29
-
-
Save un1ko85/6596826 to your computer and use it in GitHub Desktop.
force get_option to go back to the DB instead of cache
This file contains 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
$GLOBALS['wp_object_cache']->delete( 'your_option_name', 'options' ); | |
$value = get_option( 'your_option_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment