Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7778

Use caching in Services page

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: EJBCA 7.0.0
    • Fix Version/s: None
    • Component/s: CA GUI
    • Labels:
    • Provenance:
      Refactorization
    • Issue discovered during:
      Review
    • Epic Link:

      Description

      Currently, the services page is loading all service worker types (those are static and do not change at runtime) and all CAs, Certificate Profiles and Publishers several times per page rendering. This happens because getters are called many times per page load, and the getters are not caching the results.

      This makes the page slow, and after changing the service type it can take several seconds for the page to render.

      We should cache data in this page, with the following pattern:

      private Something something;
      public Something getSomething() {
          if (something == null) {
              something = ....;
          }
          return something;
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              samuel Samuel Lidén Borell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified