Inline JS Aggregations and Large Cache Sizes

Plugins such as Autoptimize and WP Rocket can collect inline JavaScript. Since some of the Tag Group features need unique IDs for the JavaScript code to connect to the right element, they receive by default random IDs. This results in some code to be cached more often than necessary.

To remedy this, enter this ID manually. In most cases you use the parameter div_id, for the table table_id. In the shortcode you add for example

div_id="my-tag-cloud-1"

or the corresponding value in the Gutenberg block under “Advanced Styling”.

Please make sure that each element (no matter which type) on a page needs a unique ID. Use a string that is unlikely to appear again and add a different number for each element (‘john-doe-tag-cloud-1’, ‘john-doe-tag-cloud-2’). White space should be replaced by dashes (-) or underscores (_).