There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f410b5d6-e72b-4241-804a-2b12a2939ec0 XWIKI-22936 Open

XWiki.SearchSuggestCode is loaded too early

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-d6e18a83-f4f4-42e5-afd5-5714be143038 Changes by Manuel Leduc on 15/Jan/26 15:47
 
Summary: XWiki.SearchSuggestCode is not cached loaded too early
Description: {{XWiki.SearchSuggestCode}} was introduced in XWIKI-22155
h2. Reproduction steps
# Visit [http://localhost:8080/xwiki/bin/view/Sandbox/]
# open the browser debugger and make sure "disabled cache" is unchecked
# Click on Sandbox Test Page 1 to go to [http://localhost:8080/xwiki/bin/view/Sandbox/TestPage1]
# check the network tab

h2. Expected

[http://localhost:8080/xwiki/bin/get/XWiki/SearchSuggestCode] is
cached not called unless the user needs to make a search
h2. Actual

[http://localhost:8080/xwiki/bin/get/XWiki/SearchSuggestCode] is
not cached called preemptively whenever the user visits a page.
This remote call should only be performed when the user starts using the search.