You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the cloud-plugin from 2013-02-17 and Dokuwiki "Weatherwax RC1" and "Adora Belle". I use the tag-cloud with the following syntax: NOCACHE TAGCLOUD
Every page with a tagcloud inside opens very slowly. I think its a difference between 1-3 seconds to a page without a tagcloud.
The problem with the tag cloud is that it depends on the permissions of the individual pages, i.e. if only pages a user can't access are tagged with a certain tag that tag shouldn't be displayed in the tag cloud for that user. This makes caching difficult and the calculation of the counts for the individual tags rather slow as the permissions for each tagged page needs to be checked. So far the cloud plugin doesn't use any special caching mechanism but simply disables caching and is thus rather slow.
There are some possibilities to optimize the code but most probably this won't really solve the problem. Instead I think it really makes sense to implement some more advanced caching mechanisms:
provide an option to count only public pages and then cache the cloud (and invalidate the cache whenever a page is updated)
use one cache per user/group (configurable), for example the indexmenu plugin does similar things
provide a configuration option to enable caching (could make sense for intranets or when tags don't reveal any information)
I installed the cloud plugin today and ran into the same issue: Adding a tagcloud makes loading a page painfully slow. Is this issue still being worked on?
There is currently nobody working on this afaik even though some caching support is definitely something that should be implemented. Unfortunately, my available time is quite limited at the moment so I can't promise I'll find time to work on this anytime soon.
Activity
michitux commentedon Mar 13, 2013
The problem with the tag cloud is that it depends on the permissions of the individual pages, i.e. if only pages a user can't access are tagged with a certain tag that tag shouldn't be displayed in the tag cloud for that user. This makes caching difficult and the calculation of the counts for the individual tags rather slow as the permissions for each tagged page needs to be checked. So far the cloud plugin doesn't use any special caching mechanism but simply disables caching and is thus rather slow.
There are some possibilities to optimize the code but most probably this won't really solve the problem. Instead I think it really makes sense to implement some more advanced caching mechanisms:
jane-t commentedon Sep 14, 2013
Our Wiki is fully public read and we are having the same problem, is there a patch or fix we could use to speed up the processing for the Tag Cloud?
tmo26 commentedon Jul 7, 2018
I installed the cloud plugin today and ran into the same issue: Adding a tagcloud makes loading a page painfully slow. Is this issue still being worked on?
michitux commentedon Jul 7, 2018
There is currently nobody working on this afaik even though some caching support is definitely something that should be implemented. Unfortunately, my available time is quite limited at the moment so I can't promise I'll find time to work on this anytime soon.