Guidelines for Troubleshooting Caching

Caching is an important feature of ISA Server 2004 and, if configured correctly, caching can provide benefits in speed of response and in reduction of bandwidth usage. At the same time, ISA Server caching there are also situations in which you may need to troubleshoot caching on ISA Server. Use the following guidelines when troubleshooting ISA Server caching:

1- If users are accessing the Internet to retrieve objects rather than retrieving the objects from the ISA Server cache, check to see if caching is enabled. To do this, check the cache configuration to ensure that a cache drive has been created. And confirm that the client computers are configured to use the ISA Server computer as a Web proxy server.

2- If only some objects are cached and the cache contents are deleted frequently, ensure that the cache drive is large enough. Cached content may be being discarded due to lack of space. You can use Performance Monitor to check the Total URLs Cached and Total Memory URLs Retrieved. A low number could indicate a cache drive that is too small.

3- If some Web sites are not being cached at all and you have caching rules configured,ensure that the caching rule order is correct. Check to see that one rule is not blocking another rule from being evaluated. Rules are evaluated in the order that they are listed in the ISA Server Management interface.

4- If users cannot retrieve content from specific Web sites, check to see if negative caching is enabled. Intermittent network problems may have caused one negative response to be cached, thereby affecting all subsequent users.

5- If users are receiving outdated content from a particular Web site that is included in a cache rule, decrease the TTL for the caching rule.

6- If objects are being cached but not returned to clients from the cache, check to see if the cache has become corrupted. Use Performance Monitor to check caching statistics. If Performance Monitor indicates that Web content is being cached, but no content is being retrieved from the cache, you may need to clear the ISA Server cache. You can clear the cache by disabling caching and enabling it again.

Configuring Caching

What Are Cache Rules?
In some cases, you may have different caching requirements for specific Web content.You can use cache rules to define the types of Web content that is stored in the cache and how Web content is stored and returned to users from the cache.

Why Use Cache Rules?
The default caching configuration, including the cache settings and the default cache rule, is sufficient for many organizations. If these settings are not modified, the default settings apply to all Web content cached in the ISA Server cache for both forward and reverse caching scenarios.

However, in some cases, you may need to configure a more specific caching configuration.For example, users in your organization may frequently access a Web site, so you may want to configure the cache so that all content from that Web site is cached on the computer running ISA Server. If the Web site contains critical information that changes frequently, you may need to implement the opposite solution, that is, configure the Web site to never be cached.

Cache Rule Settings
When you enable caching on ISA Server, a default cache rule is enabled. You can also configure a wide variety of settings that enable you to fine-tune caching performance on ISA Server. Table 6-3 describes how you can change options to fine-tune caching performance and how the default cache rule is configured.

Managing Cache Rules
After you configure caching rules, you may need to modify the cache rule settings or manage the cache rules. There are several actions that you may need to perform to manage cache rules. These include the following:
1- Modifying settings You may need to modify a cache rule after creating it. To modify the cache rule settings, open ISA Server Management, expand the Cache container, and click the cache rule on the Cache Rules tab. Then click Edit Selected Rule, as shown in Figure 6-12. The configuration options when modifying the rule are the same as the options when creating the rule, with one additional option. When you modify the cache rule properties, you can use destination sets to configure exceptions to the network entities that the rule applies to. For example, if you need to configure a rule that applies to all Web sites except one, you can configure a destination set for the Web site’s URL and add it to the Exceptions list.

2- Managing rule order Just like firewall access rules, you may need to modify the cache rule order to achieve a desired result. When ISA Server receives a Web request, it evaluates the cache rules in order. The first cache rule that matches the client request is applied. For example, you may have a cache rule that specifies the caching criteria for all Internet Web sites and another rule that specifies different caching requirements for a specific Web site. If the caching rule controlling caching for all Web sites is listed before the more specific rule, the more specific rule will never be applied. In general, you should configure the more specific rules so that they are evaluated first. The default caching rule will always be the last rule to be applied. To modify the rule order, click the rule you want to reorder and click either Move Selected Rules Up or Move Selected Rules Down.

3- Disabling or deleting cache rules If a cache rule is no longer required, you can disable or delete the rule. To do this, click the rule you want to modify and then click Disable Selected Rules or Delete Selected Rules.

4- Export and import cache rules Just as with any other ISA Server configuration setting, you can export the cache rule configuration to an .xml file and import cache rule settings. Use this option to create a backup copy of your cache rules before modifying the configuration.

Google