Enhancing OSLC Server Performance
OSLC Server Properties
In the OSLCmappings.xml file, the properties that are commented out have been excluded from Resource Responses to enhance performance. If required, you may include the properties in the Resource Response by uncommenting them.
Enable Caching in OSLC Servers
To enable caching in OSLC servers, PTC Modeler has introduced the following caching properties that are included in the web.config file. You can tweak the duration value as required for optimum performance. However, you must note that longer durations may lead to stale data. If you set the value of duration to a lower value, your server response may be slow, but the data is more recent and accurate.
|
|
If the server is configured with Reverse Lookup, then you do not have to tweak these properties as the server calls for such servers are already optimized.
|
Navigation
<add name="OSLCCacheLevelNavigation" duration="60" varyByParam="*" varyByHeader="Accept"/> — To refresh data that navigates through the OSLC cache.
Resource Data
<add name="OSLCCacheLevelResource" duration="120" varyByParam="*" varyByHeader="Accept"/> — To refresh data for an OSLC item.
User Interface
<add name="OSLCCacheLevelUI" duration="60" varyByParam="*" varyByHeader="Accept"/> — To refresh Delegated UIs – Large and Small preview data.