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

ID: Q234344


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0


SUMMARY

A new template cache feature has been added to WebClasses for Visual Studio Service Pack 3. 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 disabled 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.

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

Registry Interface

Key - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0\WebClass
ValueName - MaxTemplateCache
Default - 65 (hex) or 101 (decimal)

If set to 0, cache is disabled. If set to 0xFFFFFFFF, LRU is disabled.


REFERENCES

For more information, see the following article in the Microsoft Knowledge Base:

Q234317 BUG: Visual Studio SP3 Breaks the WebClass Runtime when Running in the VB IDE

Additional query words:

Keywords : kbVBp600 kbWebClasses kbGrpASP kbVS600sp3 kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.