We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 794fc75 + 4faf96a commit 5281d84Copy full SHA for 5281d84
ad-code-manager.php
@@ -392,6 +392,8 @@ function get_ad_codes( $query_args = array() ) {
392
393
$ad_codes_formatted = wp_cache_get( 'ad_codes' , 'acm' );
394
if ( false === $ad_codes_formatted ) {
395
+ // Store an empty array when no ad codes exist so this block doesn't run on each page load
396
+ $ad_codes_formatted = array();
397
$ad_codes = get_posts( $args );
398
foreach ( $ad_codes as $ad_code_cpt ) {
399
$provider_url_vars = array();
0 commit comments