Created
March 16, 2020 20:03
-
-
Save jrobinsonc/ae32eda3e519da00fa6ebef34d877c8b to your computer and use it in GitHub Desktop.
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
<?php | |
if ( false === ( $special_query_results = get_transient( 'special_query_results' ) ) ) { | |
// It wasn't there, so regenerate the data and save the transient | |
$special_query_results = new WP_Query( 'cat=5&order=random&tag=tech' ); | |
set_transient( 'special_query_results', $special_query_results ); | |
} | |
var_dump($special_query_results); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment