• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question How to use wildcard for cookies names on Nginx cache settings

Kaspar

API expert
Plesk Guru
I am struggling a bit to get the cache settings right for Nginx in Plesk.

Within Plesk on the Apache & nginx Settings page in the Cache requests with cookies field it is possible to list cookies that you'd like Nginx to ignore when caching. As described in the Plesk documentation. This is a use full feature, but seems to have some limitation. For example I'd like to add the wp_woocommerce_session cookie to this list. However, the actual name of this session cookie differs, because it has to be unique. The full cookie name is something like wp_woocommerce_session_51462acbe1585f247ee5b2c7debc11e3. Uniquely named for each vistor.

Unfortunately adding wp_woocommerce_session_* to the list doenst work as a wild card. This leaves me wondering how to get around this limitation? Are wildcard not possible at all in listing cookies? Are there any other options to accomplish Nginx caching when the wp_woocommerce_session is used?
 
I also tried several common wildcard operators, none of those worked.
It would be nice if this gets addressed.
 
Back
Top