• Hi,

    I’m having a problem with WordPress SEO and W3TC. In fact, I had it also testing it with WP Super Cache. No cache was working on my site, and debugging it I found that DONOTCACHEPAGE was set to true and then caching disabled. I made a grep and found this variable set in several plugins. I deactivated it one by one and finally discovered that the one causing me the trouble is WordPress SEO. It was the last I suspected, due to the quality of Yoast’s plugins…
    Anyway, in file /plugins/wordpress-seo/frontend/class-frontend.php
    there is this code:

    function title_test_helper( $title ) {
    if ( ! defined( ‘DONOTCACHEPAGE’ ) )
    define( ‘DONOTCACHEPAGE’, true);

    if ( ! defined( ‘DONOTCACHCEOBJECT’ ) )
    define( ‘DONOTCACHCEOBJECT’, true );

    if ( ! defined( ‘DONOTMINIFY’ ) )
    define( ‘DONOTMINIFY’, true );

    global $wp_version;
    if ( $_SERVER[‘HTTP_USER_AGENT’] == “WordPress/${wp_version}; ” . get_bloginfo( ‘url’ ) . ” – Yoast” )
    return ‘This is a Yoast Test Title’;
    return $title;
    }

    I don’t know why it is needed, but deactivating the plugin brought my cache back. So, as I don’t want this plugin deactivated, I changed the code to set the variable to fales. Both plugin and cache seem to work ok, but don’t know if I’m causing another trouble.

    Anyone else facing the same? Do you have any clue about it?

    Regards

    http://wordpress.org/plugins/wordpress-seo/

  • The topic ‘W3TC not working due to WordPress SEO??’ is closed to new replies.