From: Chris N. <pu...@po...> - 2000-12-08 22:45:32
|
I committed a bunch of changes to Slash::Display, got them all tested, etc. Essentially: * There is a separate Template object for each site, saved in the Slash::Apache cache, along with user/form/constants/etc. * It obeys the cache_enabled flag, so caching in Slash::Display of the templates will be turned off if cache_enabled is false * A new variable in vars, template_cache_size, sets the template object's CACHE_SIZE parameter. "0" is "unlimited cache," not "no cache." To turn off caching, set cache_enabled to false. A template will be purged from the cache if template_cache_size is nonzero, and a the cache size gets to large; the cache is LRU (least recently used). See the Template docs for details. * Templates are purged from the cache if the template has been updated in the Slash::DB cache. This may still need some work in Slash::DB, but the functionality is all there just fine in Slash::Display, so we won't have to worry about it there. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |