This issue has been created
 
 
Cristal / cid:jira-generated-image-avatar-16f14e61-f909-4de2-ad2b-ae6b01d7b3e3 CRISTAL-266 Open

The page content is fetched several times on page load/change

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a21c7ef2-9aaf-4ca5-82fa-01c5c38f2cb2 Manuel Leduc created this issue on 18/Oct/24 11:24
 
Summary: The page content is fetched several times on page load/change
Issue Type: cid:jira-generated-image-avatar-16f14e61-f909-4de2-ad2b-ae6b01d7b3e3 Bug
Affects Versions: 0.10
Assignee: Unassigned
Components: View
Created: 18/Oct/24 11:23
Priority: cid:jira-generated-image-static-major-8934943e-7980-4167-9778-41d630a2355a Major
Reporter: Manuel Leduc
Description:

We can observe many similar queries being done to fetch page content.
This is not optimal because:

  • it's adding unnecessary load on the server
  • it's adding unnecessary network traffic which is bad in case of slow network, slow server or large page content

Reproduction steps

  1. Visit a page
  2. Check the number of requests to fetch pages data (e.g., <domain>/xwiki/rest/cristal/page?media=json&page=Sandbox.WebHome&format=jsonld for a XWiki backend)

Expected

  1. one query on page load
  2. one query on page change

Actual

  1. 3 queries on page load
  2. 3 queries on page change