Re: [WebDNA] Cacheing include files

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112185
interpreted = N
texte = I would write a WebDNA script that runs automatically once a day (via cron, trigger, etc.) and writes complete .html files, one for every author, overwriting whatever matching files were already there. Then you know for a fact that all these pages are up-to-date as of today, and WebDNA never has to do any of the hard work at the time the visitor actually requests one of these pages. If you don't like this idea and instead you actually want WebDNA to cache your .inc and .frag files you can change their suffixes to one that WebDNA is already processing, or add .inc and .frag to your WebCatalog "ValidTemplateExtensions" preference and to the "AddHandler webcatalog2-handler" directive in Apache's webdna.conf file. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 03/16/2015 02:04 PM, Brian Burton wrote: > Greetings! > > What is the WebDNA community doing for cacheing page fragment > files? On my website I have some pages that require significant > processing to generate the visible content. To save time, I > only render it out the processing intense parts once an hour or > day or whatever (as required). I save this out as a fragment of > HTML in a file (with an .inc or .frag extension) > > An example of this might be a database of books, and I need to > create a page that has as html links, a list of unique authors > and a count of books attributed to that author. Rather then do > this every time the page is requested, i first check to see if > the fragment exists, then check to see if it’s current, and > then if both of those are false I render out the html, save it > in a new fragment file, and display it to the user. > > SO.. here’s my question: the fragments are saved as .inc or > .frag. WebDNA does not cache these as they are neither > templates nor databases. This causes a lot of disk activity as > I use fragments extensively to speed up the the quasi-static > parts of the website. How can I get webdna to cache these? I am > hesitant to add the extensions to the template field in the > settings. I do not want the fragment under any circumstance to > be able to be directly accessed by a web visitor. Should I > block the extension from being served by Apache? Would it be > possible to get a third cache field type in the webdna > settings? Thoughts? Suggestions? > > Thanks! Brian B. > --------------------------------------------------------- This > message is sent to you because you are subscribed to the > mailing list . To unsubscribe, E-mail to: > archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Cacheing include files (Donovan Brooke 2015)
  2. Re: [WebDNA] Cacheing include files (Stuart Tremain 2015)
  3. Re: [WebDNA] Cacheing include files (Brian Burton 2015)
  4. Re: [WebDNA] Cacheing include files (Kenneth Grome 2015)
  5. [WebDNA] Cacheing include files (Brian Burton 2015)
I would write a WebDNA script that runs automatically once a day (via cron, trigger, etc.) and writes complete .html files, one for every author, overwriting whatever matching files were already there. Then you know for a fact that all these pages are up-to-date as of today, and WebDNA never has to do any of the hard work at the time the visitor actually requests one of these pages. If you don't like this idea and instead you actually want WebDNA to cache your .inc and .frag files you can change their suffixes to one that WebDNA is already processing, or add .inc and .frag to your WebCatalog "ValidTemplateExtensions" preference and to the "AddHandler webcatalog2-handler" directive in Apache's webdna.conf file. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 03/16/2015 02:04 PM, Brian Burton wrote: > Greetings! > > What is the WebDNA community doing for cacheing page fragment > files? On my website I have some pages that require significant > processing to generate the visible content. To save time, I > only render it out the processing intense parts once an hour or > day or whatever (as required). I save this out as a fragment of > HTML in a file (with an .inc or .frag extension) > > An example of this might be a database of books, and I need to > create a page that has as html links, a list of unique authors > and a count of books attributed to that author. Rather then do > this every time the page is requested, i first check to see if > the fragment exists, then check to see if it’s current, and > then if both of those are false I render out the html, save it > in a new fragment file, and display it to the user. > > SO.. here’s my question: the fragments are saved as .inc or > .frag. WebDNA does not cache these as they are neither > templates nor databases. This causes a lot of disk activity as > I use fragments extensively to speed up the the quasi-static > parts of the website. How can I get webdna to cache these? I am > hesitant to add the extensions to the template field in the > settings. I do not want the fragment under any circumstance to > be able to be directly accessed by a web visitor. Should I > block the extension from being served by Apache? Would it be > possible to get a third cache field type in the webdna > settings? Thoughts? Suggestions? > > Thanks! Brian B. > --------------------------------------------------------- This > message is sent to you because you are subscribed to the > mailing list . To unsubscribe, E-mail to: > archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us > Kenneth Grome

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:

Location of Browser Info.txt file (1997) emailer settings and control questions (1997) Am I going senile? (Price recalc based on quantity) (1997) webCat craps httpd (2005) WebCat2b13MacPlugIn - [include] (1997) 'does not contain' operator needed ... (1997) Avery 5160 Mailing Labels (2003) ' add to cart ' or ' sku ' problem (1998) Smart caching problems with 2.1b3? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Question (1997) Emailing html (1998) Sorting error (1997) WC2f3 (1997) WC TableGrinder (1997) Dynamic Form - Shipping Country / State/ Province (2006) [ot] Still Interested In Acquiring Hosting Companies (2006) FW: Rollovers (1999) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) converting tabs (1997)