Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-3477

Handle a cache inside the SiteManager

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4
    • None
    • None
    • None

      Right now, each call to SiteManager.getSite() issues a JCR query.
      Such a call is done hundreds time per single request.

      Another way of optimize it is to store the Site object in the request, instead of only the site name ?

          [CMS-3477] Handle a cache inside the SiteManager

          OK for hasSite().
          getSites() is never called several time in a same request.

          Laurence Aumeunier added a comment - OK for hasSite(). getSites() is never called several time in a same request.

          Why is the cache not used in the hasSite() method ?

          Is it nos possible to also cache the getSites() query, which is often called ?

          Cédric Damioli added a comment - Why is the cache not used in the hasSite() method ? Is it nos possible to also cache the getSites() query, which is often called ?

            laurence Laurence Aumeunier
            cedric Cédric Damioli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: