• Hi,

    I am investigating why this and 3 other pages on this website are not being indexed by Google. I found that these pages always have the following indication at the bottom of the page source.

    <!-- Generating CSS -->

    It looks like this indication is generated by WP Fastest Cache, because it’s gone when I disable the plugin.

    I have already
    – resaved the page
    – disabled the minify/combine css options
    – deleted all cache
    but these pages never get to a point where the usual ‘WP Fastest Cache file was created in … seconds’ is shown at the bottom of the source.

    It looks like this (or the underlaying issue) causes the pages not being indexed by Google, because
    – pages with ‘Generating CSS’ are not indexed
    – pages with ‘WP Fastest Cache file was created in … seconds’ are being indexed.

    Do you have any idea why these pages get stuck on ‘Generating CSS’? Maybe tips to further investigate?

    Thanks
    JP

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Emre Vona

    (@emrevona)

    “Generating CSS” is not related to wp fastest cache.

    Are you sure?

    Because the message isn’t there when I disable WP Fastest Cache.

    Plugin Author Emre Vona

    (@emrevona)

    yes, I am sure. you can search the keyword in the source code of wp fastest cache.

    Mmm I see, you’re right. I found the string in the source code of the Divi theme.

    I’ll contact them to see what they say. Sorry for bothering you with this.

    By the way, I also found some code related to WPFC. Could you please have look if that makes sense? Thanks!

    // Disable several plugins which do not honor DONOTCACHEPAGE (set in PageResource.php).
    if ( ! headers_sent() ) {
    // Sending no-cache header should prevent CDNs from caching the first request.
    header( ‘Cache-Control: no-store, no-cache’ );
    // Disable SiteGround Optimizer Dynamic Cache.
    header( ‘X-Cache-Enabled: False’ );
    }

    // Disable LiteSpeed Cache.
    $reason = esc_html__( ‘Generating CSS’, ‘et_builder’ );
    do_action( ‘litespeed_control_set_nocache’, $reason );

    // Disable WP Fastest Cache.
    if ( class_exists( ‘WpFastestCacheCreateCache’ ) ) {
    // This Plugin has no hook/API to disable cache programmatically….
    // The only way we can do this is by setting the exclude_current_page_text public property
    // to a non empty value… except the class instance is not made available anywhere in the code….
    // However, the instance also adds itself to the wp hook so we can find it by scanning the list
    // of all registered actions.
    $hooks = et_()->array_get( $GLOBALS, ‘wp_filter.wp.10’, [] );
    if ( is_array( $hooks ) ) {
    foreach ( $hooks as $key => $hook ) {
    if (
    isset( $hook[‘function’] ) &&
    is_array( $hook[‘function’] ) &&
    is_a( $hook[‘function’][0], ‘WpFastestCacheCreateCache’ )
    ) {
    $wp_fastest_cache = $hook[‘function’][0];
    $wp_fastest_cache->exclude_current_page_text = “<!– $reason –>”;
    break;
    }
    }
    }
    }

    Plugin Author Emre Vona

    (@emrevona)

    Please disable the “Static CSS File Generation” via -> Divi Theme Options – builder – advanced

    Thanks. That ‘fixes’ but has negative impact on site speed. But no worries, I’ll take that to the Divi developers.


    What I am curious about though is your thought on the other part in their code. I mean, WP Fastes cache does support DONOTCACHEPAGE

    // Disable several plugins which do not honor DONOTCACHEPAGE (set in PageResource.php).

    // Disable WP Fastest Cache.
    if ( class_exists( ‘WpFastestCacheCreateCache’ ) ) {
    // This Plugin has no hook/API to disable cache programmatically….
    // The only way we can do this is by setting the exclude_current_page_text public property
    // to a non empty value… except the class instance is not made available anywhere in the code….
    // However, the instance also adds itself to the wp hook so we can find it by scanning the list
    // of all registered actions.
    $hooks = et_()->array_get( $GLOBALS, ‘wp_filter.wp.10’, [] );
    if ( is_array( $hooks ) ) {
    foreach ( $hooks as $key => $hook ) {
    if (
    isset( $hook[‘function’] ) &&
    is_array( $hook[‘function’] ) &&
    is_a( $hook[‘function’][0], ‘WpFastestCacheCreateCache’ )
    ) {
    $wp_fastest_cache = $hook[‘function’][0];
    $wp_fastest_cache->exclude_current_page_text = “<!– $reason –>”;
    break;
    }
    }
    }
    }

    Plugin Author Emre Vona

    (@emrevona)

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Page keeps indicating’ is closed to new replies.