Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-254

Config to cache responses larger than 500KB

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major Major
    • 5.9.5
    • None
    • None
    • None
    • Yes
    • Yes
    • DevX 34
    • 3
    • Yes

      We are using delivery endpoint, here is the definition:

       

      class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition
      workspace: blog_en_blogs2
      limit: 100000
      referenceDepth: 100
      depth: 0
      nodeTypes:
        - mgnl:composition
      
      references:
        - name: imageReference
          propertyName: bannerImage
          referenceResolver:
            class: info.magnolia.rest.reference.dam.AssetReferenceResolverDefinition
            assetRenditions:
              - 450
              - 900
        - name: authorReference
          propertyName: authors
          referenceResolver:
            targetWorkspace: authors
            class: info.magnolia.rest.reference.jcr.JcrReferenceResolverDefinition
        - name: categoriesReference
          propertyName: categoriesFilter
          referenceResolver:
            class: info.magnolia.rest.reference.jcr.JcrReferenceResolverDefinition
            targetWorkspace: category 

      this endpoint supposed to be cached but is not. when checking cache tools app, there is an entry for this endpoint, but can not be downloaded. My assumption is this entry is empty.

      On the front end, endpoint it being requested without any parametr.

      The loading time of this file is usually between 1.5 and 4 seconds (depends on connection) but thats a lot for 134kB file. BTW browser says this endpoint has 134kB but it seems to be after compression and 1.1MB before compression: 

       

       

        Acceptance criteria

              chuong.doan Chuong Doan Huy
              tgregovsky Tomáš Gregovský
              DeveloperX
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3d 7h
                    3d 7h