cache_menu table huge + page size and speed too big when using the module

Created on 18 May 2021, almost 4 years ago
Updated 20 February 2025, about 2 months ago

Hello,

We are using taxonomy_menu in one our Drupal 8 projects. We created a very big menu with the module.

I opened the database and found out that cache_menu - table has a huge size more than 120MiB.
This issue stops once I disable the module.

Also I noticed that in every page on our site in the source code the module adds a ton of code with descriptions and titles of every sub menu.

And finally the site speed increases dramatically once this module is disabled.

I noticed that in Drupal 7 version there is no Description field compared to Drupal 8.
I set its value to NONE or NID and nothing happens. The above issues remain.

Any ideas on how to fix that?

πŸ’¬ Support request
Status

Active

Version

3.4

Component

Code

Created by

πŸ‡§πŸ‡¬Bulgaria jojik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tyler-durden

    I would like to add to this issue as I am running into issues as well on the 8.x version. Even though I have the settings depth set as 1, on page load it is loading all 2000+ pages in the entire menu string, when the root only has 4 terms/links.

    This is adding up to nearly half my page load time for the taxonomy menu to load 2000+ terms/links, that are not even shown on the page. Google insights notes I have too many DOM's, which is basically the entire taxonomy menu being loaded.

    My page speed is about 2 seconds so I can live with this module, but dang I would love to get it to one second or under but this module is holding it back.

    Sorry I am not a programmer, just sharing what google insights is reporting with this module in place with 2000+ taxonomy terms. I'd guess others with larger taxonomy terms are hit even harder.

    I still love this module :)

  • πŸ‡ΊπŸ‡ΈUnited States tyler-durden

    Forgive me on my previous post, the issue is not with this module but a stupid exposed views filter I have. Duh...

Production build 0.71.5 2024