Topic Resolution: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51401
    Sue Fernandes
    Guest

    We are currently trying to work on site speed on a development website. The site is hosted on a server but the a record of the domain is currently pointed to another server, so we are accessing the site view a changed hosts file. Minification seems to be working on this site using W3Total cache, but page caching does not. Do you know if this is because of it not being ‘live’, or do I need to look for other causes?

    Thanks for any help you can provide.

    Sue

    #51429

    Hello Sue,

    Thank you for reaching out and I am happy to assist you with this.
    Can you please share/confirm the website URL?
    Can you also please share more details about the W3 Total Cache configuration and why you think that Page Caching does not work as expected?
    Thank you!

    #51431
    Sue Fernandes
    Guest

    Hi, there is no accessible URL, I think that this is the problem. We are only able to view the site by changing the hosts file to the IP address of the server. I have checked the /wp-content/cache folder and there is nothing being generated in there – is this because the url is not accessible?

    #51451

    Hello Sue,
    In this case, depending on a caching method, if it’s Disk: Enhanced, for example, the folder should be created with the IP address instead of the URL, for example:
    /wp-content/cache/page_Enhanced/2.249.65.164/
    However, I cannot specify the exact issue without inspecting the source and checking the debug. You can check it yourself by enabling the Debug For Page caching in Performance>General settings.
    I hope this helps!
    Thanks!

    #51548
    Sue Fernandes
    Guest

    Hi, yes I enabled debug but it doesn’t show anything in the source of the page. Is there anywhere else I can see this information?

    #51616

    Hello Sue,

    Thank you for yoru feedback.
    If you are not seeing anything in the source, most likely the HTML minify is enabled which removes comments
    Go to Performance>Minify>HTML&XML section, and add the Performance to Ignored comment stems: field, save all settings and purge the cache. Once this step is done, HTML Minify will ignore comments containing Performance, and you should see something similar as the following when inspecting the website in the bottom of the HTML source

    <!--
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/
    
    Object Caching 121/331 objects using disk
    Page Caching using disk: enhanced 
    
    Page cache debug info:
    Engine:             disk: enhanced
    Cache key:          yourwebsite.com/_index_ssl.html
    Creation Time:      1650990604.000s
    Header info:
    Content-Type:       text/html; charset=UTF-8
    X-Powered-By:       W3 Total Cache/2.2.1
    Link:               <https://yourwebsite.com/wp-json/>; rel="https://api.w.org/"
    
    Content Delivery Network Full Site Delivery via Cloudflare
    Lazy Loading
    Minified using disk
    
    Served from: yourwebsite.com @ 2022-04-26 17:30:04 by W3 Total Cache
    -->

    I hope this helps!

    #51675
    Sue Fernandes
    Guest

    Thankyou for your help, we have now got the site on a staging server and checked the debug. It seems to be starting to build the cache now. Many thanks for your help.

    <!–
    Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

    Object Caching 1390/136365 objects using memcached
    Page Caching using disk: enhanced

    Page cache debug info:
    Engine: disk: enhanced
    Cache key: staging.acornfiresecurity.com/door-exit-hardware/_index_ssl.html
    Creation Time: 1651045256.000s
    Header info:
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Content-Type: text/html; charset=UTF-8
    Link: <https://staging.acornfiresecurity.com/wp-json/&gt;; rel=”https://api.w.org/&#8221;
    Link: <https://staging.acornfiresecurity.com/wp-json/wp/v2/product_cat/182&gt;; rel=”alternate”; type=”application/json”

    Lazy Loading
    Database Caching using redis (Request-wide User is logged in)
    Fragment Caching 788/793 fragments using redis

    Served from: staging.acornfiresecurity.com @ 2022-04-27 08:40:56 by W3 Total Cache
    –>

    #51706

    Hello Sue,

    Thank you for your feedback.
    You are most welcome and I am glad the problem is resolved!
    We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Does W3 total cache work when site not live?’ is closed to new replies.