Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4035

Plugin ConnectWorldserver: Cache for expensive function getAllUsers()

    XMLWordPrintable

Details

    • High
    • Hide
      To speed things up, the result of a once loaded list is cached inside Translate5. Default timeout for this cache is 1 hour (60 minutes) and is be configurable by a Translate5 config.

      !!! a once given timeout can not be shortend. This means: if cache is stored with timeout 60 it will be used for 60 minutes. !!!
      Show
      To speed things up, the result of a once loaded list is cached inside Translate5. Default timeout for this cache is 1 hour (60 minutes) and is be configurable by a Translate5 config. !!! a once given timeout can not be shortend. This means: if cache is stored with timeout 60 it will be used for 60 minutes. !!!

    Description

      Description

      To get assigned users for a plunet-task, which are not assigned directly but via their role in Plunet, we us the Plunet-API function "getAllUsers()".
      This function took very long, because all users must be loaded from Worldserver.
      As consequence, import-worker of tasks are blocked, because this function is part of the plugin-specifc worker on task-import.

      To speed things up, the result of the once loaded list should be cached inside Translate5. Default timeout for this cache should be 1 hour (60 minutes) and should be configurable by a Translate5 config.

      Attachments

        Activity

          People

            Stephan Stephan Bergmann
            Stephan Stephan Bergmann
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: