• Resolved HJ Smit

    (@hajeesmit)


    In addition to the transient example, the used quotes gave me an undefined constant error and an underscore was missing.

    $my_cached_menu = get_transient(“name_of_my_cached_menu”);

    if( $my_cached_menu === false )

    {

    $my_cached_menu = … ;

    set_transient(“name_of_my_cached_pro_menu”, $my_cached_pro_menu, YEAR_IN_SECONDS );

    }

    echo $my_cached_pro_menu;`

    The page I need help with: [log in to see the link]

The topic ‘Caching’ is closed to new replies.