- Issue created by @gabesullice
After doing some more research, I believe there used to be functionality to disable stat tracking, but it was commented out when the module was ported to Drupal 8.
https://git.drupalcode.org/project/memcache/-/blame/8.x-2.x/src/Driver/D...
- π¬π§United Kingdom alexpott πͺπΊπ
@gabesullice lolz I was just about to report this. Imo stat collection should be off by default and only on when configured with a container parameter. Otherwise the default mode of a module meant for performance is to be a memory hog.
- π¬π§United Kingdom alexpott πͺπΊπ
The amusing this is I realised this yesterday and was going to create an issue next week when I had $time to do this. The bug has been sitting here for years and @gabesullice realised it on the same day in 2025!
- Merge request !40Collect memcache stats only when memcache_admin is installed and configure to show stats β (Open) created by alexpott
- π¬π§United Kingdom alexpott πͺπΊπ
This is a major bug. Memcache's memory usage is much higher than it should be because of this.
I've started to fix this in the MR. Just need to implement the checking if the account has access.
- π«π·France mably
Getting this error, even after an
update.php
, when applying path on my Drupal 11 instance:Drupal\\Core\\DependencyInjection\\ContainerNotInitializedException: \\Drupal::$container is not initialized yet. \\Drupal::setContainer() must be called with a real container. in /var/www/html/web/core/lib/Drupal.php on line 169 #0 /var/www/html/web/modules/contrib/memcache/src/Driver/DriverBase.php(305): Drupal::getContainer()\n#1 /var/www/html/web/modules/contrib/memcache/src/Driver/DriverBase.php(102)