Skip to content

Cloud Plugins slows down dokuwiki #20

Open

Description

@fuechsin

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

Activity

  1. michitux commented on Mar 13, 2013

    @michitux
    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)
  2. jane-t commented on Sep 14, 2013

    @jane-t

    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?

  3. tmo26 commented on Jul 7, 2018

    @tmo26

    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?

  4. michitux commented on Jul 7, 2018

    @michitux
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions