Configure caching to capture user traffic data
To set the level of caching performed on user traffic data:
- Open...
WC_INSTALL/instances/instance/xml/wc_instance.xml
- Find a code fragment similar to this:
<LogSystem name="Log System"> <messageLog display="false" notification="false" notificationClassName="com.ibm.commerce.messaging.ras.ErrorNotificationHandler" /> <activityLog display="false"> <userTraffic cacheSize="20" /> <accessLogging cacheSize="32" logAllRequests="false" /> </activityLog> </LogSystem>In the example fragment, Set userTraffic to 1 to ensure that the USRTRAFFIC table is written to every time a URL is requested. Set to 20 to cause a write to USRTRAFFIC table after 20 URLs have been requested. Lower numbers equal lower performance.
- Set <start> element to true...
<component compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEventListener" enable="true" name="UserTrafficEventListener"> <property display="false"> lt;start enabled="true" /> </property> </component>
- Save the file.
- Stop and start the WebSphere Commerce Server according to the instructions in Start and stop servers.