Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud Plugins slows down dokuwiki #20

Open
fuechsin opened this issue Mar 13, 2013 · 4 comments
Open

Cloud Plugins slows down dokuwiki #20

fuechsin opened this issue Mar 13, 2013 · 4 comments

Comments

@fuechsin
Copy link

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
Copy link
Member

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)

@jane-t
Copy link

jane-t commented 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
Copy link

tmo26 commented 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
Copy link
Member

michitux commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants