Skip to content

Instantly share code, notes, and snippets.

@un1ko85
Created September 17, 2013 16:29
Show Gist options
  • Save un1ko85/6596826 to your computer and use it in GitHub Desktop.
Save un1ko85/6596826 to your computer and use it in GitHub Desktop.
force get_option to go back to the DB instead of cache
$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