• ok im testing [Plugin: WP Super Cache]

    they told me to use the dynamic cache content tag

    <!--dynamic-cached-content--><?php
    include_once( ABSPATH . '/scripts/adverts.php' );
    print_sidebar_ad();
    do_more_stuff();
    ?><!--
    include_once( ABSPATH . '/scripts/adverts.php' );
    print_sidebar_ad();
    do_more_stuff();
    --><!--/dynamic-cached-content-->

    ok so the function is this:

    <?php if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>

    so i ended putting it up like the example and i ended up like this:

    <!--dynamic-cached-content-->
    <?php if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>
    <!--
    if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>
    --><!--/dynamic-cached-content-->

    now they told me to do the….

    To execute WordPress functions you must define $wp_super_cache_late_init in your config file.

    so i dont know how to do that….im not a programmer.

    where is that config file?

    ok i think i manage to find the config file

    $wp_super_cache_late_init = 0; //Added by WP-Cache Manager

    ok that 0 i change it to a 1

    but still i got this error:

    Parse error: syntax error, unexpected T_STRING in mydomain.com/wp-content/plugins/wp-super-cache/wp-cache-phase1.php(204) : eval()’d code on line 175

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use wp-config.php in the root of your site or wp-content/wp-cache-config.php (actually, might have to use the second config file as it might be there already, set to 0)

    Change your code to:

    <!--dynamic-cached-content--><?php
    if(function_exists('stt_terms_list')) echo stt_terms_list() ;
    ?><!--
    if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>
    --><!--/dynamic-cached-content-->

    Does that work?

    Thread Starter hustleturtle

    (@hustleturtle)

    hello donncha

    i changed this line

    $wp_super_cache_late_init = 1; //Added by WP-Cache Manager

    to

    $wp_super_cache_late_init = 0; //Added by WP-Cache Manager

    since it was the default, and you told me to put the 0 instead of 1.

    that was on the file wp-content/wp-cache-config.php

    the file wp-config.php in the root i havent touch it.

    i also change the code on my index template where i manualy put the code:

    <?php if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>

    i changed it to what u told me:

    <!--dynamic-cached-content--><?php
    if(function_exists('stt_terms_list')) echo stt_terms_list() ;
    ?><!--
    if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>
    --><!--/dynamic-cached-content-->

    i test it like a visitor….not admin….and i get blank page, the page is blank. there is no error message but i guess its not working.

    do i need something else? put the functions php or something?

    please be more detailed…im not programmer.

    thanks.

    on the faqs of the plugin i found this:

    It seems the plugin won’t work with my theme, what is wrong?

    Like many others SEO plugins, this plugin requires your theme to call wp_head() hook on the HTML header. Put <?php wp_head(); ?> code between your <head>...</head> tag, usually on header.php file. Open the header file of WordPress Default Theme if you need any references.

    is that the reason is not working? how to i put that on the index?

    it used to work, without the wp super cache plugin…..i mean the search plugin used to work, without much intervention from me, i didnt need to mess with that header thing…

    once installed the wp super cache…..cant make it work….does that header thing, need also be inside the

    <!--dynamic-cached-content--> tags?

    No, the late init variable has to be set to 1, not 0. Sorry if what I wrote was misleading. I’m not sure why it’s not working as I haven’t used that plugin. 🙁

    Thread Starter hustleturtle

    (@hustleturtle)

    oh thanks

    i set it from 0 to 1

    test again….

    no blank page…..but not working the plugin either…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Super Cache] dynamic function not working’ is closed to new replies.