Reference: https://git.drupalcode.org/project/google_tag/-/commit/bc23d262f79bf8516...

Issue:

On sites with heavy traffic when caches are not available, each request received on the server in parallel will try to generate the cache and files. This can lead into deadlocks and even heavy usage on files.

Proposed solution:

Either respect the configuration to not delete the cache and files or introduce a new configuration to ensure we don't really rebuild it unless really required.

Comments

nikunjkotecha created an issue. See original summary.

nikunjkotecha’s picture

Title: Google tag files deleted even if rebuild_snippets flag is set to false » Files / cache created on the fly can resulting into into performance issues
Category: Bug report » Support request
Issue summary: View changes
nikunjkotecha’s picture

Category: Support request » Bug report

Changing to bug considering the following in original request in https://www.drupal.org/project/google_tag/issues/3114963

Provide a setting to allow cache rebuild to clear snippets, but then leave regenerating them to happen on demand by a Drupal request

solotandem’s picture

Category: Bug report » Support request

Your issue topic is not specific to this module but falls into scope of Drupal core. Please take it up with core (and follow the bug reporting guidelines).

Your proposed solution relates to a change in this module but is not really related to your stated issue. Regarding same, the module does respect its settings. It does NOT have a setting whether or not to clear the cache and files on cache rebuild (core clears the cache table, this module clears the snippet files if applicable), only one to determine whether to rebuild them on the same request. So your statement is incorrect.

If you persist with this issue, then please rewrite the issue summary following the [bug] reporting guidelines. In particular, I am unclear what you mean by the phrase beginning 'or introduce a new' in the last sentence.

solotandem’s picture

Status: Active » Closed (works as designed)

Change status for lack of follow-up.