Anonymous User 16850768
(@anonymized-16850768)
You’re welcome! The following regular expression will work to exclude the page paths above:
/^\/(login\/|contact\/|client-section\/.*)$/
Thread Starter
Patte
(@infosion)
Hey Corey,
very nice, thank you very much!
This is exactly what I was looking for!
Anonymous User 16850768
(@anonymized-16850768)
You’re very welcome, @infosion. I’m happy to hear that worked for you.
Leaving an honest review is always appreciated if you’re able to.
Thread Starter
Patte
(@infosion)
Hey Corey,
I am struggeling with another regular expression to exclude a path that contains or begins with “registration”.
In addition to the above
/login/
/contact/
/client-section/*
I would like to add
*registration* (just a string within the path) or
/registration* (a page slug that beginis with “registration”)
Thanks for your help!
This is not a single page but multiple registration pages with different slugs.
Thread Starter
Patte
(@infosion)
Ah, and
/registration/registration*
😉
Anonymous User 16850768
(@anonymized-16850768)
Happy to help, @infosion. If any page path that contains “registration” needs to bypass the cache you could just use the following regular expression:
/^\/(login\/|contact\/|client-section\/.*)$|registration/
Regex tester: https://regex101.com/r/zCvlab/1
Does that solution work for you?