Re: TemplateCacheSize preference!

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21719
interpreted = N
texte = >A long time ago, Grant Hulbert said: There is a preference called >TemplateCacheSize that lets you specify the *number* of files to be >cached. > >I have several questions regarding this preference: > >1- Does this pref work with both the plugin AND the CGI?Yes.>2- What default value is used by webcat when this pref is not defined?100>3- Is there a real or practical upper limit to the value of this preference?It's a linear search algorithm, so the more items in it, the longer it takes to find a matching file. Never done timing tests, but it seems like it could probably look through 1000 items faster than it would take to read from disk. You'd have to experiment and see.>4- What are the PCS recommendations for using this preference?It's tied to the smartcache number of seconds between disk checks (default 2 seconds). Which means every 2 seconds it's hitting the disk anyway. It's designed so that if you're getting 50 hits per second, then 100 hits go thru with no disk hits. If you're sure your content never changes, you could set the smartcache time to 86400 (a day) and never hit the disk once during the day. Our recommendation is to leave it alone unless you have a specific need.But don't be too concerned about disk hits -- even on a 6100/66 it takes about 1/60 second to load a file from disk.Bottom line: experiment. It's not critical enough for us to have a huge discussion about it here on the talk list.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: TemplateCacheSize preference! (PCS Technical Support 1998)
  2. Re: TemplateCacheSize preference! (Kenneth Grome 1998)
  3. Re: TemplateCacheSize preference! (PCS Technical Support 1998)
  4. TemplateCacheSize preference! (Kenneth Grome 1998)
>A long time ago, Grant Hulbert said: There is a preference called >TemplateCacheSize that lets you specify the *number* of files to be >cached. > >I have several questions regarding this preference: > >1- Does this pref work with both the plugin AND the CGI?Yes.>2- What default value is used by webcat when this pref is not defined?100>3- Is there a real or practical upper limit to the value of this preference?It's a linear search algorithm, so the more items in it, the longer it takes to find a matching file. Never done timing tests, but it seems like it could probably look through 1000 items faster than it would take to read from disk. You'd have to experiment and see.>4- What are the PCS recommendations for using this preference?It's tied to the smartcache number of seconds between disk checks (default 2 seconds). Which means every 2 seconds it's hitting the disk anyway. It's designed so that if you're getting 50 hits per second, then 100 hits go thru with no disk hits. If you're sure your content never changes, you could set the smartcache time to 86400 (a day) and never hit the disk once during the day. Our recommendation is to leave it alone unless you have a specific need.But don't be too concerned about disk hits -- even on a 6100/66 it takes about 1/60 second to load a file from disk.Bottom line: experiment. It's not critical enough for us to have a huge discussion about it here on the Talk List.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Appendfile memory usage (redux) (2003) Listserver problem (1997) problems with 2 tags shakur (1997) RE: Languages (1997) WebCat2b15MacPlugin - [protect] (1997) Extended [ConvertChars] (1997) [WebDNA] improvements (2015) Re1000001: Setting up shop (1997) Re:Has this happened to you? (was:Emailer Chokes on bad address) (1997) NT version and O'reily's WebSite (1997) redirect with frames (1997) Redirect frame targets (1998) Webmerchant confirmation hooks? (1997) referrer and no caches (1997) Pithy questions on webcommerce & siteedit (1997) [append] vs. [appendfile] delta + question? (1997) question: writing files textb in webmerch (1997) Emailer.Out (1998) [WebDNA] TLS 1.2 and [tcpconnect] (2018) Converting characters to numbers ... (1997)