Keywords
Keywords Preloading
This section currently contains an overview for the preloading function for Shortcodes Asa2 Keywords shortcodes. The list contains entries of all known preloadable shortcodes.

The "ID" column refers to the unique identifier option of the Shortcodes Asa2 Keywords shortcode (see Shortcodes Asa2 Keywords Option Id). The Timeout column contains the time information (hours:minutes:seconds) for how long this keywords shortcode remains in the cache.
id parameter example
To make a keywords shortcode preloadable, add a unique id option:
[asa2_keywords id="nintendo-switch-games" search_index="VideoGames" tpl="Flex_1"]nintendo switch[/asa2_keywords]INFO
The Keywords Preload Cronjob can only refresh keywords shortcodes that have an id parameter set. Without an id, the shortcode will not appear in the preload list and cannot be refreshed automatically before the cache expires.
Background Information
To render a Shortcodes Asa2 Keywords shortcode, ASA2 sends one request to the Amazon PA API. The results remain in the cache as long as it is defined in the "Options / Cache / Keywords cache" section. If the cache expired, another request would be needed to refresh the results. Typically, this occurs when the first visitor comes to the page with the shortcode, which may cause some delay in page loading.
To avoid this, you can set a Shortcodes Asa2 Keywords shortcode a unique ID (see Shortcodes Asa2 Keywords Option Id) so that ASA2 can remember it. If you have defined this ID, ASA2 will save it automatically when the shortcode is loaded in the frontend and the corresponding entry will appear in this admin section list.
Preloading via Cronjob
Using a periodic cron job, ASA2 can now refresh these known shortcodes before the cache becomes invalid. Thus, the request is sent without involving the user, at least if it is a real server-side cronjob.
Learn more about the Cronjob Keywords.

