• Community
  • Questions
  • How to disable the "Recent Labels" and "Popular Labels" macros/boxes?

How to disable the "Recent Labels" and "Popular Labels" macros/boxes?


We are facing some performance issues with Confluence 4.2.1 and would like to disable the "Recent Labels" and "Popular Labels" boxes from a specific page. That page appears when someone searches for all sites related to a label by clicking on the respective label in the label overview.

We disabled the "popular-label" and "recently-used-labels" macros from the "Advanced Macros" Add-On as described here:
https://answers.atlassian.com/questions/117268/disable-the-popular-labels-macro (please copy and paste; the link does not work for some reason.)
However, the "Advanced Macros" Add-On is categorized as "User-installed Add-Ons" in our environment, not as "System Add-Ons". But I guess that changed with some new version of Confluence.

Unfortunately, the boxes are still appearing on this page.
Is there any way to disable/remove them completely?

Reason: We learned that the SELECT statements for those boxes take much time and in total, from the moment a user clicks a label until this search result page is displayed, 3-5mins pass.

Thanks for your help!
Cheers, Tom

2 answers

1 accepted

The "Recent Labels" and "Popular Labels" in the right column are populated by the labels-sidebar.vm file. This file is located in the /confluence/labels/includes/ directory.

Looking at this VM file, it appears that the $action.getText("recent.labels") and $action.getText("popular.labels") are the culprits.

So, you could either comment out those functions (or the entire file), or comment out the place where this file is being parsed. In this case, the labels-sidebar.vm file is being parsed by the viewlabel.vm file (which is the page that I think you're referring to).



Hi Matthew,

thank you very much! Commenting out the caller and the functions (to be save) increased the performance of this site enormously. We are down to 15-20secs. until this site is being displayed.

Thanks for your help!
Cheers, Tom

Side note:

If someone else is having issues with label performance:

An update to at least 4.2.5 will perfectly fix all issue regarding that topic. Found here:
We tested the behaviour on 4.3.7 and the performance issues are completely gone.

Cheers, Tom

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

168 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot