Skip to main content

Faster Loading for Site information

📝 Problem Statement

Fetching Site information can currently take up to a full second. This delay slows down loading, parsing, and execution across the UI.


👤 User Story

As a business owner,
I want the Site Information endpoint to respond quickly,
So that my customers experience quicker page loads and smoother interactions in the UI.


✅ Definition of Done (DoD)

  • Offload cacheable endpoints to Cloudflare for ultra-fast response times.

  • Store and update JSON in real-time using R2 Object Storage.

  • Serve responses with fast edge performance via Workers.

  • Enable real-time cache invalidation with Cache-Control, ETag, and versioning strategies.

  • Ensure fallback to origin works seamlessly via Worker logic.

  • Achieve sub-50ms response times with Cloudflare global edge + object prefetching.

Test Cases

  • Validate headers in response are served through cloudflare

  • Validate paymentGateway objects keys Addition/updates/deactivation in the response json.

  • Validate random keys Addition/updates from site info on the response (google_id, auth0_id...etc)

  • Validate products Addition/updates/deletion impact on json response

  • Validate plans Addition/updates/deletion impact on json response

  • Validate paywalls Addition/updates/deletion impact on json response

  • Validate the above against accounts on single site

  • Validate the above against accounts with multiple sites with objects (products, plans, paywall) to reflect on both sites

  • Validate the above against accounts with multiple sites with objects (products, plans, paywall) to reflect on a single sites

Status: Available8 comments

Log in to comment and vote

Comments8

  • Zamir

    •

    Sep 16, 2025

    thanks for the clarification Rana. will wait until the plan improvement ticket update is done and then review.

  • Zamir

    •

    Sep 16, 2025

    Hi Rana,

    Thanks for the update, however i am not seeing an improvement in the performance.

    https://www.motorsportmagazine.com/motor-sport-subscriptions-offers/?view=plan-select&product_id=2466&plan_id=38526&directPlan=true

    still around 4 seconds before the modal appears.

    Please note have actioned the below already on my side so was hoping to see an improvement.

    We recommend you make the following changes to the Pelcro scripts: 

    • [HIGH PRIORITY]  Move it to the top of <head> tags

    • [MEDIUM PRIORITY] Add "defer" the Pelcro script tags 

    • Rana Haleem

      Team•

      Sep 16, 2025

      Hi Zamir,

      Thanks for sharing the example.

      Allow me to clarify; this particular modal is calling the plan endpoint, and the performance improvement for that is scheduled for the next release Faster Loading for Plan Information. The improvement that went out in today’s release was for the site info endpoint, so you should now see improvements related to site info loading.

      I’d be happy to jump on a call to walk through this in more detail if that would be helpful — I’ll be glad to help!

  • Zamir

    •

    Sep 15, 2025

    Can i get an update on this. the date for it keeps changing.

    • Michael Ghattas

      Team•

      Sep 15, 2025

      Hey Zamir,

      We are releasing the SITE API Endpoint improvement tomorrow. The Plan API Endpoint will be worked on till next release. @Rana Haleem - please split the tasks for clarity for everyone.

    • Rana Haleem

      Team•

      Sep 15, 2025

      Hey Zamir,

      Thanks for keeping up with our roadmap !

      We’ll be releasing the SITE API Endpoint improvement tomorrow. To keep things clearer, I’ve split the two improvements into separate tasks — the Plan API Endpoint will be worked on for the next release. You can follow progress in the related task here Faster Loading for Plan Information.

    • Rana Haleem

      Team•

      Sep 16, 2025

      Hey Zamir,

      I wanted to let you know that this enhancement is now live. Please feel free to test it out and share any feedback you may have.

  • Michael Ghattas

    Team•

    Sep 8, 2025

    We already have great progress here. There is a significant improvement on performance. We are targeting to release this by September 15 if all goes well with QA.