WordPress.org

Ready to get started?Download WordPress

Forums

Transients working in one place but not the other (1 post)

  1. Seth Stevenson
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Seth Stevenson
  • This topic is not resolved
  • WordPress version: 3.2.1

Tags

No tags yet.