Title: DONOTCACHE
Last modified: December 4, 2023

---

# DONOTCACHE

 *  Resolved [paam30](https://wordpress.org/support/users/paam30/)
 * (@paam30)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/donotcache/)
 * Hi,
 * I have a multi-language website. My home page are the same in the 2 languages.
   The main language is English and the second language Portuguese. My concerned
   is that the home page in english is much slower than the home page in portuguese.
 * I compare both pages and the only think that is diferent is this:
 * English page:
 *     ```wp-block-code
       <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 520/1295 objects using Disk Page Caching using Disk: Enhanced (DONOTCACHEPAGE constant is defined) Content Delivery Network via N/A Lazy Loading
       ```
   
 * Portugueses page:
 *     ```wp-block-code
       <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 619/1135 objects using Disk Page Caching using Disk: Enhanced Content Delivery Network via N/A Lazy Loading
       ```
   
 * What am I doing wrong? is this ok?
 * I need to improve site performance.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdonotcache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/donotcache/#post-17253982)
 * Hello [@paam30](https://wordpress.org/support/users/paam30/)
 * Thank you for reaching out and I am happy to help!
   As you can see in the HTML
   output you shared:`Page Caching using Disk: Enhanced (DONOTCACHEPAGE constant
   is defined)`This means that some plugin or theme is adding: `define('DONOTCACHEPAGE',
   true);` or it was added manually to the theme template used for the homepage.
   In this case, the W3 Total Cache Page Caching cannot kick in because the constant
   is saying that this page should not be cached.Please check this with your theme
   developer and remove the constant, so that Page Caching can work in the English
   version of the website.
 * Thanks!
 *  Thread Starter [paam30](https://wordpress.org/support/users/paam30/)
 * (@paam30)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/donotcache/#post-17257666)
 * Hi Marko,
 * Thank you so much for your help.
 * I found out the “guilty” plugin is polylang. The plugin has a setting “Detect
   browser language – When the front page is visited, redirects to itself in the
   browser preferred language. As this doesn’t work if it is cached, Polylang will
   attempt to disable the front page cache for known cache plugins.”
 * If I disable this function both home pages have more or less the same performance.
   But is not a solution to disable this function. I found in some old posts that
   there is no workaround. But the posts were 2 years old. Is there a workaround
   nowadays? any ideas on how to solve this?
 * Thanks in advance
 * Paula
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/donotcache/#post-17257862)
 * Hello [@paam30](https://wordpress.org/support/users/paam30/)
 * The only way for the Page Caching to kick in is to remove the mentioned constant.
   
   I am not sure which posts you are referring to for the workaround so please share
   the links to those
 * Thanks!

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

The topic ‘DONOTCACHE’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [DONOTCACHEPAGE](https://wordpress.org/support/topic-tag/donotcachepage/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/donotcache/#post-17257862)
 * Status: resolved