Cookies through PHP sessions cookies have no-cache parameters
-
Hello,
Im having some problem with my site load speed and lifterlms. I also understand this might be a problem from my hosting provider (DreamPress). But as result my site load really slow and varnish is missing.
This is what Hosting Team say to me, and I wondering if there is any possible workaround about this issue:
I’m seeing that there are plugins conflicting with the Nginx cache, one of which is lifterlms. When a plugin is configured to set up session cookies through PHP sessions, sometimes those cookies have no-cache parameters that affect the entire site. As a result, a caching service like Nginx wouldn’t be able to cache the site, unfortunately.
The plugin is showing as setting PHP sessions and session cookies through the files:
./wp-content/plugins/lifterlms/vendor/ericmann/wp-session-manager/includes/class-wp-session.php
./wp-content/plugins/lifterlms/vendor/ericmann/wp-session-manager/includes/wp-session.php
You can contact their support team and ask if there are rules they can provide for the DreamPress team to add to the caching services.
Using isvarnishworking.uk I see the following message:
301: Moved Permanently
server: openresty
date: Tue, 06 Nov 2018 22:52:03 GMT
content-type: text/html; charset=UTF-8
transfer-encoding: chunked
connection: close
set-cookie: _wp_session=3d6a0e7cc88b97974c043040260cda79%7C%7C1541587923%7C%7C1601160723; expires=Wed, 07-Nov-2018 10:52:03 GMT; Max-Age=43200; path=/,_wp_session=848635e3dbb96fa4499a65f7b70e870b%7C%7C1541587923%7C%7C1601160723; expires=Wed, 07-Nov-2018 10:52:03 GMT; Max-Age=43200; path=/
location: https://www.thedigitalmarketingchallenge.com/
x-varnish: MISS
age: Tue, 06 Nov 2018 22:52:02 GMTThe page I need help with: [log in to see the link]
- The topic ‘Cookies through PHP sessions cookies have no-cache parameters’ is closed to new replies.