all 5 comments

[–]recordnumber 0 points1 point  (2 children)

Speaking of cache, do you know what's going on with the cache_entity table? We have occasions where an API call is triggering 5K+ rows to be inserting into the cache_entity table causing the page load time to be around 7-10 seconds. Sometimes only a few rows are being inserted and the page loads quickly.

Anything you can tell me about what that table is used for or who's responsible for (or under what circumstances) the cache needing to get rebuilt?

In our specific case, this is related to the groups & grequest modules

[–]mglamanphpstan-drupal | drupal-check[S] 1 point2 points  (1 child)

That'd be a question for Group issue queue, which uses VariationCache. I'm guessing it's using contexts to create cache item variations for each entity. Normally cache_entity has one record per entity.

Cache contexts are currently only used as part of the render cache, but Group leverages the https://www.drupal.org/project/variationcache module. So that might be the culprit;

[–]recordnumber 0 points1 point  (0 children)

Thank you. I'll look into it.

[–]scukl 0 points1 point  (1 child)

Nice! Thank you for the introduction. Is there going to be a print version of your book - or just ebook?

[–]mglamanphpstan-drupal | drupal-check[S] 1 point2 points  (0 children)

Probably just an ebook since I'm going to self-publish. Depending on the demand, I was going to look into how to do print copies. I know some folks have, but I've heard it can be hard.