Session handler with CDN

Discussion regarding Joomla! 3.x Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
goble
Joomla! Explorer
Joomla! Explorer
Posts: 269
Joined: Sat Jan 09, 2010 11:23 am

Session handler with CDN

Post by goble » Mon Jan 31, 2022 7:01 am

Hello,

Following this post viewtopic.php?f=709&t=991392.

Am having issues in terms of how Joomla handles Front-end users after login. Examples :
- a user will be redirected to wrong page after login
- a user will see another username in login module (this other username comes from another logged in user at this moment)

The parameters at Cloudflare was :

Caching:
- ‘Browser Cache Expiration’ to ‘Respect Existing Headers’
Rules :
- Browser Integrity Check: On, Browser Cache TTL: an hour, Cache Level: Cache Everything, Edge Cache TTL: a month

To temporary sort out the issue, settings have been set to:
- ‘Browser Cache Expiration’ to ‘2 minutes
Rules :
- Browser Integrity Check: On, Browser Cache TTL: an hour, Cache Level: Standard, Edge Cache TTL: a month

But with new setting am having very long TTFB again.

P.S Would Global Config > System > Session Settings > Session handler set to PHP instead of Database help ? Anyone reading in have got some experience with handling joomla users when using CDN ?
Mauritius Travel Guide https://explora.mu

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30942
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Session handler with CDN

Post by Per Yngve Berg » Mon Jan 31, 2022 8:27 am

php is more efficient than the database.

goble
Joomla! Explorer
Joomla! Explorer
Posts: 269
Joined: Sat Jan 09, 2010 11:23 am

Re: Session handler with CDN

Post by goble » Mon Jan 31, 2022 8:56 am

Thanks @Per,

Yes I've read a bit about it and it is recommended when using SSD HDDs on the server (which is my case)

Sorry for this question which could be a dumb one. If I set Session handler to PHP, is there a file that will handle this ? And if so which one ? I was planning to create a rule so that this file in not cached by CDN, that could sort out the issue, but not sure.
Mauritius Travel Guide https://explora.mu


Locked

Return to “Performance - Joomla! 3.x”