BoldGrid / w3-total-cache

GNU General Public License v2.0
153 stars 86 forks source link

Private Page Cache for Logged-in users #957

Closed jouskaSockets closed 2 months ago

jouskaSockets commented 2 months ago

The Page Cache functionality in W3 Total Cache provides a significant boost to website performance. However, its current implementation is primarily effective for non-logged-in users. For logged-in users, enabling Page Cache can lead to critical issues, as it may cause one user to see another user's cached data, creating potential security and privacy concerns.

Currently, the plugin offers an option to disable Page Cache entirely for logged-in users, but this removes the caching benefits for a significant portion of the user base. I would like to propose a feature enhancement: adding a Private Page Cache mode for logged-in users. This would allow each user to have their own personalized cached version of the page, ensuring both performance improvements and data integrity.

By introducing this feature, the plugin would better cater to dynamic websites with personalized content, while preserving the security of user data in a more efficient and scalable manner.

cssjoe commented 2 months ago

Although it is a nice idea, varying the cache in that way can lead to a large cache. We are still working on a similar solution for WooCommerece. We will consider the option. However, there are some challenges to overcome.