Tagged: W3 Total Cache Troubleshooting
- AuthorPosts
- April 25, 2022 at 9:42 am #51401Sue FernandesGuest
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
April 25, 2022 at 10:18 am #51429Marko VasiljevicKeymasterHello 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!April 25, 2022 at 12:46 pm #51431Sue FernandesGuestHi, 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?
April 25, 2022 at 1:02 pm #51451Marko VasiljevicKeymasterHello 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!April 26, 2022 at 6:51 am #51548Sue FernandesGuestHi, 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?
April 26, 2022 at 12:35 pm #51616Marko VasiljevicKeymasterHello 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 thePerformance
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!
April 27, 2022 at 7:41 am #51675Sue FernandesGuestThankyou 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: enhancedPage 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/>; rel=”https://api.w.org/”
Link: <https://staging.acornfiresecurity.com/wp-json/wp/v2/product_cat/182>; rel=”alternate”; type=”application/json”Lazy Loading
Database Caching using redis (Request-wide User is logged in)
Fragment Caching 788/793 fragments using redisServed from: staging.acornfiresecurity.com @ 2022-04-27 08:40:56 by W3 Total Cache
–>April 27, 2022 at 10:29 am #51706Marko VasiljevicKeymasterHello 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! - AuthorPosts
- The topic ‘[Resolved] Does W3 total cache work when site not live?’ is closed to new replies.