Skip to content

Instantly share code, notes, and snippets.

@un1ko85
Created September 17, 2013 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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