FLUID-6709: Reimplement some form of caching for ResourceLoaders so that the same resource is not refetched many times

Metadata

Source
FLUID-6709
Type
Improvement
Priority
Major
Status
Open
Resolution
N/A
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2022-01-26T08:55:14.023-0500
Updated
2022-01-26T08:56:45.453-0500
Versions
  1. 3.0
Fixed Versions
  1. 5.0
Component
  1. ResourceLoader

Description

As per our planning document at Prefs framework rewrite / Infusion planning meetings this was listed as important for 4.0.0 but could be done later:

ii) We need to economise on ResourceLoaders that are fetching identical state so they don’t keep attempting to refetch it (something that the old caching requests stuff did, which was axed)

This is only hugely important for upcoming "new renderer" components such as TableOfContents which have many recursive levels depending on the same template. This will not land in trunk until Infusion 5.