Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5589

Cache rest api endpoints in Cloudflare

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Released
    • Icon: Should have Should have
    • 2.42.2
    • None

      We recently started adding endpoints to fetch certain data used by frontend rendered blocks. Unfortunately the performance of these endpoints is quite bad (.5 to 1 second response time). Currently these GET requests are not cached by Cloudflare because they use a query string.

      Tasks

      • Add a Page Rule in Cloudflare to cache all wp-json endpoints.
      • Test the behaviour and assess whether PLANET-5569 is still needed.

        1. wp-json.png
          wp-json.png
          20 kB
        2. cf-cache.png
          cf-cache.png
          34 kB

            nroussos Nikos Roussos
            nroussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: