- This topic has 2 replies, 2 voices, and was last updated 5 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Cache Control with Simple Membership Pages
Tagged: Cache
I have Simple WordPress Membership set up, and for this test all other plugins have been deactivated. Theme is Astra.
I visit a page where I need to login to view content, but once logged in it serves up the cached version not the logged in version.
Details:
When I visit the page logged out, iIt sends these headers:
HTTP/2 200 OK
date: Fri, 18 Dec 2020 23:54:15 GMT
server: Apache
link: <https://www.?.com/wp-json/>; rel=”https://api.w.org/”, <https://www.?.com/wp-json/wp/v2/pages/180>; rel=”alternate”; type=”application/json”, <https://www.?.com/?p=180>; rel=shortlink
cache-control: max-age=600
expires: Sat, 19 Dec 2020 00:04:15 GMT
vary: Accept-Encoding,User-Agent
content-encoding: gzip
content-length: 7745
content-type: text/html; charset=UTF-8
X-Firefox-Spdy: h2
I click the login link.
I return to that page where I needed to log in (that send the headers above)
It still shows the logged out view
Browser reports it got the page from cache not the server
I need to hit F5 to get the logged in content.
Ah sorry, looks like this is a hosting provider settings issue. I had a play and changing from PHP 7.4 Fast CGI to PHP 7.4 CGI in the Dreamhost setup for the domain seems to have fixed it.
I am happy to know you solved your own issue.
Enjoy the plugin.