Setting Refresh Strategies
Setting Refresh Strategies
Application administrators can change system values at any time through the configuration activity in the Commerce Manager. A suitable setting refresh strategy should be selected to balance responsiveness with system performance.
Refresh strategy types
There are four types refresh strategies:
- Application
- Interval
- Immediate
Application refresh strategy
Settings that use the application refresh strategy are only updated after the application is restarted.
Interval refresh strategy
Settings that use the interval refresh strategy are cached and are only refreshed after a specified period of time. As a result, users do not see changes to these settings until the cache interval expires. When this strategy is used, the setting value must specify the name of one of the cache settings. The value of the specified cache setting indicates the refresh interval.
Immediate refresh strategy
Settings that use the immediate refresh strategy are not cached. As soon as the administrator changes a setting, the change is applied. Since the values are not cached, the database must be queried every time they are required. This may cause some performance degradation in high-traffic areas of the system.
Modifying a setting's refresh strategy
- Log on to the Commerce Manager Client.
- In the Activity menu, choose Configuration.
- In the Configuration menu, choose System Configuration.
- Select the setting.
- Expand Setting Definition Metadata.
- Select apiRefreshStrategy and click Edit.
- Modify the refresh strategy's Value.
- Click Save.