[WebDNA] Cacheing include files
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112184
interpreted = N
texte = 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=E2=80=99s 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.=20SO.. here=E2=80=99s 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?=20Thanks!Brian B.=
Associated Messages, from the most recent to the oldest:
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=E2=80=99s 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.=20SO.. here=E2=80=99s 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?=20Thanks!Brian B.=
Brian Burton
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:
Error: Permision deny. (2005)
Public beta 2 for WebCatalog 4.0 is now available. (2000)
Changing to a windows mounted share from a Mac OS X machine (2002)
how to get [protect] tag from webcat3b3 to 3.03 on IIS working (1998)
PCS Frames-Default page is solution! (1997)
Date or time comparisons have bugs ... (1998)
Almost a there but..bye bye NetCloak (1997)
command parameters (1998)
Site / Database Structure (2002)
Bug Report, maybe (1997)
Great product and great job ! (1997)
Statistics... (2004)
Mac Vs WindowsNT (1997)
WC1.6 to WC2 date formatting (1997)
Which GUI HTML editors work with WC ? (1997)
RE: Switching To NT (1999)
Umm...about those log files? (Off Topic) (1997)
WC 2.0 frames feature (1997)
How bad an idea is it to put cart=[cart] on all links? (2000)
Multi-pay? (2003)