Configuring caching to capture user traffic data

Edit the WebSphere Commerce configuration file to set the level of caching performed on user traffic data. The default number of URLs in the cache is 20. If this number is too low for your site, for example, if your site is very busy and you are concerned about performance impacts, you can increase the cache size. User traffic data is used in some operational reports.


  1. Open the WebSphere Commerce configuration file.
  2. Find a code fragment similar to the one below. In the example fragment, the element in bold controls the caching level of user traffic logging. The default setting of 20, for example, updates the USRTRAFFIC table after 20 URLs have been requested. The lower this number is, the more likely it is to affect performance.
    <LogSystem name="Log System">
       <messageLog display="false" notification="false"
       <activityLog display="false">
    <userTraffic cacheSize="20" />
          <accessLogging cacheSize="32" logAllRequests="false" />
  3. In addition, the value has to be set to true in the <start> element of the following sample fragment in your configuration file:
         enable="true" name="UserTrafficEventListener">
       <property display="false">
          <start enabled="true" />
  4. Start and stop your WebSphere Commerce instance.