I have a few sites where boost causes the anonymous user count to be abnormally high... and a few others using memcache that always show "0 / 0" because I'm not using Drupal's core session handling...
Is there any way I could disable the user count? I get about one question a week asking what it's there for... and I always say "oh, nothing, it's checking to see how many sane people are on the website at any given time."
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | user_count_setting.patch | 1.99 KB | bartezz |
| #4 | user_count_setting.patch | 2 KB | bartezz |
Comments
Comment #1
sunThanks for taking the time to report this issue.
However, marking as duplicate of #293768: Allow to enable/disable menu additions. You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.
Comment #2
geerlingguy commentedSounds good - will post in other issue.
Comment #3
manischewitzbacon commenteduntil the option to disable it comes along, you can always add
.admin-menu-users {display: none;}to your admin theme's css...
Comment #4
bartezz commented@manischewitzbacon: with hiding the count via css you don't save your setup from a heavy db call!
User count does a killer db call:
$count_auth = db_result(db_query("SELECT COUNT(DISTINCT uid) FROM {sessions} WHERE uid > 0 AND timestamp >= %d", $interval));When having loads of sessions (very large webshop with remember me option on logon plus allowing anonymous sessions for shopping cart) this results in more Out of Memory WSOD errors than I'd care for. We are hosting on a very optimal tuned 1GB dedicated VPS and the site and all modules run fine yet the admin menu module can cause trouble every now and then.
I've created a patch against 6.x-3.0-alpha4 (which we are using now) to make this an option. It's a really simple patch which could easily be implemented into other releases I think. It doesn't change current settings or require user attention when committed it just gives the user/admin a setting to disable the count.
Cheers,
Bartezz
Comment #6
bartezz commentedLet's try this...
Comment #8
sunComment #9
truls1502I am sorry for no reply until now.
There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.
We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.
However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.
So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?
Thank you for understanding! :)
Comment #10
truls1502This issue has been automatically marked as closed because it has not had recent activity after the last post.
However, if you or someone is still facing the same issue as described to the issue, could you please to re-open the issue by changing the status of the issue, and add an explanation with more details which can help us to reproduce your situation.
Again, thank you for your contributions! :)