Donotcache defined in session not working for already cached pages
-
Hello,
I use custom log in (into session) to fetch user information from ERP system and display real-time data, prices according to user preferences.
Lets say, session name is: “erp_user”.I already defined DONOTCACHEPAGE true for “erp_user” and set headers.
So in this session everything working fine, pages will not be cached to get real-time prices from ERP.The situation is different if a random (not logged in) visitor starts visiting (caching) pages. After this, logged in user with session “erp_user” will also get default cached pages.
Is there any way to always display non-cached pages when specific session starts?
I’ve tried the page cache fragment, but I’m lost in the template settings.
…. Shop – woocommerce.
…. WordPress user database can not be used (can not copy every user from ERP into wordpress)
…. Standard solution: Non-logged in user: cached pages. Logged in user: non-cached pages.
…. Expert solution: Logged in users cached pages with non-cached prices.Thank you.
- The topic ‘Donotcache defined in session not working for already cached pages’ is closed to new replies.