Configuring how data is cached

The caching settings control how data is cached in the Mobile Search server's memory to reduce response time to the user.

The caching settings have a direct effect on the amount of data that is cached for each user who is logged on to Mobile Search. If you change these settings, consider the available RAM and processing capacity on the Mobile Search server.

Table: Mobile Search caching settings describes the caching settings.

Table: Mobile Search caching settings

Setting

Default

Description

PageSize

20

The number of search results that are displayed on each page.

Valid range: 1 to 100.

If all users have devices with a large vertical layout, increase this value based on the device's screen height.

PageContentSize

15

The maximum size in kilobytes for the contents of one page of an email or an attachment. Above this size, pagination occurs.

Valid range: 1 to 100.

Most common mobile devices can handle HTML pages up to 20 KB efficiently. If your mobile devices can support more data per page, increase this value accordingly. Increasing the value reduces the number of pages, making the contents easier to read.

If your mobile devices support less data per page, reduce the value. Reducing the value increases the number of pages, but means that the devices can handle the data efficiently.

SearchResultsCacheSize

5

The number of search result pages that are cached in the session memory for each user.

Valid range: 1 to 100.

SearchResultsCacheSize multiplied by PageSize gives the number of search results that are cached for each user. By default, 100 search results are cached for each user.

ContentsPageCacheWindow

6

The number of content pages that are cached in the session memory for each user.

Valid range: 1 to 100.

ContentsPageCacheWindow multiplied by PageContentSize gives the size in kilobytes of email or attachment data that is cached for each user. By default, 90 KB is cached.

To configure the caching settings

  1. In Web.Config, find the <appSettings> section.

  2. In the <appSettings> section, find the following lines:

    <add key="PageSize" value="number"></add>

    <add key="PageContentSize" value="size_in_kilobytes"></add>

    <add key="SearchResultsCacheSize" value="number"></add>

    <add key="ContentsPageCacheWindow" value="number"></add>

  3. In each line, replace the current value with the value you require.

  4. Save and close Web.Config.