• Resolved kapvin

    (@kapvin)


    I am currently exploring ways to verify that my pages are being correctly served from the cache without enabling debug mode for performance reasons.

    Could you recommend a method to determine if a page is served from the cache by W3 Total Cache without relying on the debug mode?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kapvin

    Thank you for reaching out and I am happy to help!

    W3 Total Cache adds a html output to the bottom of the page for example:

    <!--
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/
    
    Page Caching using Disk: Enhanced 
    Lazy Loading
    Minified using Disk
    
    Served from: yourwebsite.com @ 2024-01-31 14:38:02 by W3 Total Cache
    -->
    
    

    While this may seem similar to what you see in the debug mode, it’s only an info used for the information about the caching, and the debug has a lot more information about the specific debug enabled.

    However, any HTML minification may remove this since it removes comments.
    If you have W3TC minify enabled, instead of disabling the HTML Minify in Performance>Minify, add the Performance string to Performance>Minify>HTML&XML>Ignored comment stems:
    Save all settings, purge the cache, and check your website in incognito mode or logged out.

    If are using Cloudflare, The Cloudflare also has minify options so it’s best to disable those in the Cloudflare dashboard (HTML minify, JS minify and CSS minify) and only use W3TC minify instead.
    Of course, this is only relevant if those settings are enabled in Cloudflare and using Cloudflare

    I hope this helps!

    Thanks!

    Thread Starter kapvin

    (@kapvin)

    hi Marko, Thanks for the input. I am not seeing a total cache message on the website. Also, I double-checked that code minification is disabled on the plugin. Also, I am not using any other optimization plugin furthermore, we are not using Cloudflare.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kapvin

    Thank you for your feedback.
    Can you please share your website URL?

    Thanks!

    Thread Starter kapvin

    (@kapvin)

    Hi Marko,

    I am getting following error in install section wehre it shows .htaccess content . also my htaccess is blank

    An error occurred in line 281 of the file wp-content/plugins/w3-total-cache/inc/options/install.php. Error message: Uncaught TypeError: count(): Argument must be of type Countable|array, null given at wp-content/plugins/w3-total-cache/inc/options/install.php:281
    Stack trace: 0 wp-content/plugins/w3-total-cache/inc/options/install.php(281): count() 1 wp-content/plugins/w3-total-cache/Generic_Page_Install.php(28): include(‘…’) 2 wp-content/plugins/w3-total-cache/Base_Page_Settings.php(71): W3TC\Generic_Page_Install->view() 3 wp-content/plugins/w3-total-cache/Root_AdminMenu.php(290): W3TC\Base_Page_Settings->options() 4 wp-includes/class-wp-hook.php(324): W3TC\Root_AdminMenu->options() 5 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 6 wp-includes/plugin.php(517): WP_Hook->do_action() 7 wp-admin/admin.php(259): do_action() 8 {main}

    thrown

    Thread Starter kapvin

    (@kapvin)

    also, the URL of the website is https://www.bystadium.com/pricing/

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kapvin

    Thank you for your feedback.
    I’ve also replied to your email via the W3 Total cache support channel so please continue the correspondence there so we can avoid duplicating the answers.

    Thanks!

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

The topic ‘Identifying Cached Pages Without Enabling Debug Mode’ is closed to new replies.