dokufreaks / plugin-cloud

GNU General Public License v2.0
19 stars 13 forks source link

Cloud Plugins slows down dokuwiki #20

Open fuechsin opened 11 years ago

fuechsin commented 11 years ago

Hi,

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.

Regards Jessica

michitux commented 11 years ago

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 commented 11 years ago

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 commented 6 years ago

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 commented 6 years ago

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.