Welcome to Geeklog, Anonymous Thursday, November 21 2024 @ 10:23 am EST
Geeklog Forums
Cache issues (log-out and token) solved in theme
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Lot of users told me about log-out and token issues with the purepro theme.
I added this code in the purepro_siteHeader function in theme functions.php file :
$loggedInUser = !COM_isAnonUser();
if( $loggedInUser) {
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
}
Everything seems to be ok now. No more log-out or token issues.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
I added this code in the purepro_siteHeader function in theme functions.php file :
Text Formatted Code
$loggedInUser = !COM_isAnonUser();
if( $loggedInUser) {
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
}
Everything seems to be ok now. No more log-out or token issues.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
8
13
Quote
All times are EST. The time is now 10:23 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content