We are currently making the get_components call on every cache controlled page. I have created a patch to add functionality to add a js setting to tell the Cache Control script to only make the call if components are found for this page (and query).

Basically, we do the same check in _cache_control_is_cached_pageload that we will do in the get_components callback, and add a js setting to fire the ajax call if the getPageComponents methods returns any components for this path

We then check for the setting in the js, and fire the get_components ajax call only if this setting is found.

Will add a patch shortly

Comments

thehideki’s picture

badrange’s picture

Status: Active » Needs review

Changing status to Needs review because a patch is available