Microsoft KB Archive/234344

= INFO: Template Cache Added in WebClasses for Visual Studio 6.0 Service Pack 3 =

Article ID: 234344

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q234344



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
A new template cache feature has been added to WebClasses for Visual Studio 6.0 Service Pack 3 (SP3). The new feature is in the new version of the WebClass runtime (Mswcrun.dll version 6.00.8450).



MORE INFORMATION
This cache improves the performance of common WebClass applications that use HTML templates and tag processing. The cache is useful only for those WebClass applications that run on servers with enough virtual memory to cache all the commonly used templates. If the cache is constantly exceeded, locks will occur and templates will be re-processed. You should either set the cache to a larger value or disable it. Also, if the administrator can guarantee there will always be enough virtual memory for all the templates used by the WebClass, he or she can disable the cache's LRU (least recently used) algorithm, which will slightly increase performance and scalability.

The template cache also implements a file watch, so templates can be updated on the server without rebooting. Also, changing the TagPrefix causes the template's cache to be dumped and reprocessed; therefore, you should avoid changing TagPrefixes at runtime (this is not very common) or you should disable the cache. Extensive rescanning of tag replacements may take away performance gains.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Registry Interface
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0\WebClass

ValueName: MaxTemplateCache

Default: 65 (hex) or 101 (decimal)

If the value is set to 0, the cache is disabled. If value is set to 0xFFFFFFFF, LRU is disabled for the cache.

