• Resolved Megunticook

    (@megunticook)


    I’ve got WP Optimize Premium 3.3.1 installed. Page cache is disabled, since I already have W3Total Cache installed:

    But I noticed there’s a setting on Woo Commerce product pages that allows you to disable caching the product–at first I thought this was W3TC but peeking under the hood I see this is for WPO

    And a tech from W3TC says he’s seeing some cache headers that aren’t being generated by W3TC. Is it possible that WPO is doing something?

    Here’s the specific cache-control header he was referring to on the cart page:

    Could WPO be doing that?

    I took a peek at the config file in wp-content and it looks like page cache is disabled but still seems odd that the setting to disable page cache is displaying on the product pages:

    <?php
    if (!defined('ABSPATH')) die('No direct access allowed');
    
    $GLOBALS['wpo_cache_config'] = json_decode('{"enable_page_caching":false,"page_cache_length_value":24,"page_cache_length_unit":"hours","page_cache_length":86400,"cache_exception_conditional_tags":[""],"cache_exception_urls":[""],"cache_exception_cookies":[""],"cache_exception_browser_agents":[""],"enable_sitemap_preload":false,"enable_schedule_preload":"0","preload_schedule_type":"wpo_use_cache_lifespan","enable_mobile_caching":"0","enable_user_caching":"0","site_url":"https:\\/\\/swansislandcompany.com\\/","enable_cache_per_country":"0","permalink_structure":"\\/%year%\\/%monthnum%\\/%day%\\/%postname%\\/","uploads":"\\/var\\/www\\/html\\/sico\\/wp-content\\/uploads","gmt_offset":-4,"timezone_string":"America\\/New_York","date_format":"F j, Y","time_format":"g:i a","use_webp_images":false,"enable_per_role_cache":"0","enable_user_specific_cache":"0","wpo_cache_cookies":[],"wpo_cache_query_variables":[],"wp_salt_auth":"@D[TBBZPcz^h-H,IxY%<V?qhi&KZ}aB T+Q#SqR+8Kkfqf{T#)-n-:!%,F^loyRrYBE.9A+v.Fw(SSX#m iofw2v4r-|)+_+GX[I!Yf{,-&8.pIr1bPD)NyK#<L=9W<S","wp_salt_logged_in":"j4y!70imyRH?zp[P,vQo!XSATwFf!82-z{H)P1lGNzoms.^SP7&1\\/M_nEc0&|T>`vc:F.[o%K+]5f]dCRneHFDZg,?afM7n;_|qAcxB@]-O@xC4\\/Bqqv]E?hO[W-W(","default_values":{"woocommerce_currency":"USD","WC_ABSPATH":"\\/var\\/www\\/html\\/sico\\/wp-content\\/plugins\\/woocommerce\\/"}}', true);
    
    • This topic was modified 2 years, 1 month ago by Megunticook.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Yes the page cache is disabled.

    I ran some tests and I can confirm it’s not WPO or W3TC that is adding this header.

    I changed my cart page and whatever the page I set as my cart has this header so I think it might be WooCommerce adding this. (I disabled both plugins in testing)

    This is the correct header to have for a cart page though so I would leave it as it is.

    Thread Starter Megunticook

    (@megunticook)

    Thanks for checking. Yeah, the cart seems to be behaving now and it’s good to see the “no-cache” directive in the headers for /cart/, you’re right it may be Woo Commerce adding those although I didn’t see them in the cart.php template when I checked. But why is your plugin displaying the “Don’t cache this product” on all the product pages if the WPO page cache is disabled”? Your developers should make that checkbox display conditionally only if page cache is enabled. Otherwise potentially confusing.

    Plugin Support vupdraft

    (@vupdraft)

    Here is what I get;

    When WPO is deactivated I do not get this box.

    When WPO is activated but caching is disabled, I still see this box. With caching in the plugin disabled, I would not expect to see this.

    Is this consistent with what you are getting?

    Thread Starter Megunticook

    (@megunticook)

    Correct–even when caching is disabled the box is displayed on product pages.

    Plugin Support vupdraft

    (@vupdraft)

    Thank you for confirming, I have logged a ticket so that we address this.

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

The topic ‘is page cache really disabled?’ is closed to new replies.