code testing variables $value = wp_cache_get( ‘hello’ ); if ( false === $value ) { // not found, set the default value wp_cache_set( ‘hello’, ‘world’ ); } echo $value