• I’m able to get transients working on my front-page.php file using code similar to:

    if ( false === ( $front_page_data = get_transient( 'front_page_data' ) ) ) {
    
    /* Get $front_page_data code here */
    
    set_transient( 'front_page_data', $front_page_data, 60 * $cacheTime );
    
    } // End if

    However if I use that exact same transient structure on a page template (page-pagename.php) it doesn’t work.

    Any ideas?

  • The topic ‘Transients working in one place but not the other’ is closed to new replies.