WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 and W3 Total Cache compatibility (4 posts)

  1. Max Nomad
    Member
    Posted 4 years ago #

    Greetings, all,

    In an attempt to further optimize my website, I installed the W3 Total Cache plugin and enabled it. Immediately afterward I began seeing double entries in my logs for pages that also make use of the Contact Form 7 plugin. As you can see in the log sample below, it's pulling the page up then pulling it up again with an extension on it:

    * 16:40:24 ->/bgp/graphic-design-portfolio/
    * 16:40:32 ->/bgp/graphic-design-portfolio/?_wpcf7_is_ajax_call=1&_wpcf7=3
    * 16:40:59 ->/bgp/graphic-design-portfolio/
    * 16:41:02 ->/bgp/graphic-design-portfolio/?_wpcf7_is_ajax_call=1&_wpcf7=3
    * 16:46:34 ->/bgp/graphic-design-portfolio/
    * 16:46:39 ->/bgp/graphic-design-portfolio/?_wpcf7_is_ajax_call=1&_wpcf7=3

    After I disabled W3 Total Cache the double hits have continued to appear. I'm wondering about the following:

    1) What is causing this?

    2) Is there a setting I can adjust to make it stop?

    3) Will it negatively affect the SEO I've done to my site because it may be construed as duplicate data?

    Any input would be greatly appreciated. Thanks in advance!

  2. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    1) What is causing this?

    Contact Form 7 reloads the page in the background by Ajax when you use it with any caching plugin. It is necessary for it to make some functions work in the cached page.

    2) Is there a setting I can adjust to make it stop?

    It checks if the WP_CACHE constant is defined and has true value. Maybe you can find it in your wp-config.php.

    3) Will it negatively affect the SEO I've done to my site because it may be construed as duplicate data?

    I think it shouldn't, but I can't answer correctly as I am not Google.

  3. Max Nomad
    Member
    Posted 4 years ago #

    Thanks takayukister for the fast response. I'm thinking I'll check to see if there's a way to avoid caching the pages where Contact Form 7 are used.

  4. Frederick Townes
    Member
    Posted 4 years ago #

    Yes, you can add those pages with CF7 forms to the never cache the following pages field on the page cache settings tab.

Topic Closed

This topic has been closed to new replies.

About this Topic