-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.2] Allow to disable session metadata tracking for guest users #37459
Conversation
Does it also drops the cookie for non logged in users? |
hm, nope, session still works as before, it just does not store "User state" in database. |
I have tested this item ✅ successfully on a1e36cf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
Wrong approach in my opinion, we should try to create no user session if we have only a guest user. And only create the session if needed by a extension. |
Good luck with that |
Co-authored-by: Brian Teeman <[email protected]>
I wrote already a poc a while ago |
@HLeithner I just extending existing feature 😉
That would be better of course, but that will be much to do, and I have no idea how. |
true, other thing isn't select box with 3 options better? |
I not sure. |
I'm really interested in this aspect, performance. In case of many visitors then this solution can improve the performances avoiding the work due to the creation of the sessions ... correct? Thanks! |
sadly not, it only allow to disable metadata for guest users, you can disable metadata for all users if you like then no addition database query for updating the stats will be done. But still Joomla creates a Session for each user (request without session) |
I have tested this item ✅ successfully on b2d406e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
I have tested this item 🔴 unsuccessfully on b2d406e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
I have changed to enabled by default, test again |
I have tested this item ✅ successfully on 99e7bb9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
1 similar comment
I have tested this item ✅ successfully on 99e7bb9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37459. |
joomla/joomla-cms#36591 + joomla/joomla-cms#37362 + joomla/joomla-cms#37404 - (позже был Revert PR) joomla/joomla-cms#37453 + joomla/joomla-cms#37583 + joomla/joomla-cms#37459 + joomla/joomla-cms#36751 + joomla/joomla-cms#36752 + joomla/joomla-cms#37912 + joomla/joomla-cms#37838 + joomla/joomla-cms#38002 + joomla/joomla-cms#38036 - (только для en-GB, у нас давно исправлено) joomla/joomla-cms#38009 + joomla/joomla-cms#38064 + joomla/joomla-cms#37911 + joomla/joomla-cms#38065 + joomla/joomla-cms#38075 + joomla/joomla-cms#38071 + joomla/joomla-cms#38080 + joomla/joomla-cms#38082 + joomla/joomla-cms#38092 + joomla/joomla-cms#38113 + joomla/joomla-cms#38121 + joomla/joomla-cms#37910 + joomla/joomla-cms#38165 + joomla/joomla-cms#37747 +
Summary of Changes
This should improve performance for sites that does not use User registration/login feature.
We already have an option to disable "Track Session Metadata",
However it more usefull to be able to disable it only for non registered users, while keep track of metadata for loged in users.
That what I made here.
Testing Instructions
Enable debug with DB queries enabled.
Visit the site frontend (do not login) and check how much DB queries.
Apply patch.
Go to global configuration and set "Track Session Metadata for non registered Users" to "No".
Visit the site frontend again (do not login) and check how much DB queries.
Expected result AFTER applying this Pull Request
All should continue work as before, without any errors.
And it should reduce 2db query.
Documentation Changes Required
Yes, I guess, need a description for this feature.