How do i change the ContentFinder's refresh interval?
By default, the ContentFinder automatically refreshes its search results every 20 seconds to check for new items. This refresh one cause of performance slowdown especially when there are long running ContentFinder requests displayed in the logs.
The refresh interval can be defined by overlaying and modifying the script in /libs/cq/ui/widgets/source/widgets/wcm/ContentFinderTab.js
.
In CQ 5.3+, you can:
/crxde
(CRXDE Lite) web application and login as admin/libs/cq/ui/widgets/source/constants.js to /apps/cq/ui/widgets/source/
(if the folder structure doesn't exist under /apps then create it first, save, then copy constants.js)CQ.CF_REFRESH_INTERVAL
constant to 0Or
CQ.CF_REFRESH_INTERVAL
set to 0.The Content Finder also does an asset search automatically when the user clicks on a content finder tab and on each page load. If you find that the results of the auto searches are not actually useful for authors or you are willing to part with this functionality for a performance boost then you should disable this search. Note: The process below works for CQ5.3 and CQ5.2.1.
To disable the initial search that is done by the Content Finder when clicking a tab or loading a page, do the following:
/libs/cq/ui/widgets/source/widgets/wcm/ContentFinderTab.js to /apps/cq/ui/widgets/source/widgets/wcm/
(if the folder structure doesn't exist under /apps then create it first, save, then copy ContentFinderTab.js)this.loadStore(this.getParams())
in the show event handler of the contentfinderCQ.wcm.ContentFinderTab.getResultsBoxConfig = function(config, proxyConfig, storeConfig, refreshInterval) { // MOD START: disable refreshing refreshInterval = "0"; // MOD END: disable refreshing
constructor: function(config) { config = CQ.Util.applyDefaults(config, { "layout": "border", // "title": config.title ? config.title : "", "items": [], "listeners": { "show": function() { //this.loadStore(this.getParams()); } } }); CQ.wcm.ContentFinderTab.superclass.constructor.call(this, config); },
When a user starts typing a path in the Content Finder search box it provides suggestions to the user. In a CQ5 instance with a large amount of content this feature causes slowdown in system performance.
To disable this feature, do the following:
Note: In step 3, you must replace the text, do not comment the line because it will not work.
CQ5.2.1 / CQ >= 5.3
Download
Download
Sign in to your account