Re: [BULK] Re: [WebDNA] abstraction code can be tricky...

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108321
interpreted = N
texte = > I suggest you post a more terse version of your problem. I've been = coding WebDNA just about every day for 10 years and have never seen an = illogical caching problem. It's likely there is a reason for the results = you are seeing.. proxy server, sandbox vs. admin setting, or whatever. Here is the terse version: = --------------------------------------------------------------------------= ---------------------------------------------------- I made a file ("file1") that includes file2. =20 File2 includes file3. =20 File1 and file2 are NOT RAM hogs. File3 has some code in it that needs a decent amount of RAM available to = it, to work. When the RAM is enough, and the server is using webdna7, = then for sure file3 works fine. Otherwise it may or may not work. But = the code is syntactically sound.=20 In file3 there is an [if][then](1).. =20 In that [if][then](1) there is a [functionA] In that [functionA] there is a [switch][case].. In that [switch][case] there is a [functionB (defined)], alongside an = [if][then](2) In that [if][then](2) there is a call to [functionB] When I hit file1 in the browser, on webdna6, it never loads.=20 Furthermore, from that moment forward, nothing of my edits to file3 will = be reflected in the browser. In other words, even if I make the code in file3 BONE SIMPLE, like = nothing more than "hello world", and not a character more, the page = never loads. All other pages still load fine. If the server admin = reboots the server, and then I hit file1 in the browser, then I see just = "hello world" (from file3), instantly. In other words, after reboot, = file3 is now coming from the disk again, as opposed to from the last = copy that got "burned" into RAM somehow. I work around the above issue (so that file1-->file2-->file3) loads = fine.. even while doing the layered thing I want, by simply moving = functionB's definition outside of functionA's definition. = --------------------------------------------------------------------------= ---------------------------------------------------- Not sure how I can make it more terse or clear. I have also been coding Webdna since 1997, and mostly full time for the = last 3-4 years. Just because you have not seen this behavior does not = mean it is because I am missing something. Maybe I am missing = something. But others can confirm the stuck-caching behavior which I = mention from the first post in this thread.. others besides Daniel (who = just confirmed she sees it too). I leave it to others to see this = thread, and reply, if they do. Note that none of my posts were meant to complain..but just to give a = heads up.. to save someone else some time.. should they encounter the = same situation... and so possibly have a workaround, from my post. -G= Associated Messages, from the most recent to the oldest:

    
> I suggest you post a more terse version of your problem. I've been = coding WebDNA just about every day for 10 years and have never seen an = illogical caching problem. It's likely there is a reason for the results = you are seeing.. proxy server, sandbox vs. admin setting, or whatever. Here is the terse version: = --------------------------------------------------------------------------= ---------------------------------------------------- I made a file ("file1") that includes file2. =20 File2 includes file3. =20 File1 and file2 are NOT RAM hogs. File3 has some code in it that needs a decent amount of RAM available to = it, to work. When the RAM is enough, and the server is using webdna7, = then for sure file3 works fine. Otherwise it may or may not work. But = the code is syntactically sound.=20 In file3 there is an [if][then](1).. =20 In that [if][then](1) there is a [functionA] In that [functionA] there is a [switch][case].. In that [switch][case] there is a [functionB (defined)], alongside an = [if][then](2) In that [if][then](2) there is a call to [functionB] When I hit file1 in the browser, on webdna6, it never loads.=20 Furthermore, from that moment forward, nothing of my edits to file3 will = be reflected in the browser. In other words, even if I make the code in file3 BONE SIMPLE, like = nothing more than "hello world", and not a character more, the page = never loads. All other pages still load fine. If the server admin = reboots the server, and then I hit file1 in the browser, then I see just = "hello world" (from file3), instantly. In other words, after reboot, = file3 is now coming from the disk again, as opposed to from the last = copy that got "burned" into RAM somehow. I work around the above issue (so that file1-->file2-->file3) loads = fine.. even while doing the layered thing I want, by simply moving = functionB's definition outside of functionA's definition. = --------------------------------------------------------------------------= ---------------------------------------------------- Not sure how I can make it more terse or clear. I have also been coding Webdna since 1997, and mostly full time for the = last 3-4 years. Just because you have not seen this behavior does not = mean it is because I am missing something. Maybe I am missing = something. But others can confirm the stuck-caching behavior which I = mention from the first post in this thread.. others besides Daniel (who = just confirmed she sees it too). I leave it to others to see this = thread, and reply, if they do. Note that none of my posts were meant to complain..but just to give a = heads up.. to save someone else some time.. should they encounter the = same situation... and so possibly have a workaround, from my post. -G= Govinda

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:

Tracking inbound links for discounts (1997) Where's Cart Created ? (1997) New Web Site Developers Database (1996) Associative lookup style? + bit more (1997) ShippingCosts (1998) Searchable WebCat (etc.) Docs ? (1997) Changing names of .hdr field names (2003) PSC recommends what date format yr 2000??? (1997) Re:Emailer Set Up (1997) SiteEdit Pro Update Announcement (1997) $Append for Users outside the ADMIN group (1997) WebCat with WebTen (1998) No Answer on Web Merchant Problem? (2001) RE: [taxRate] [TaxTotal] ? (1997) Nested tags count question (1997) BannerAds example (1998) [WebDNA] Friday February 13, 2009 (2009) pc (1997) Templates on Unix & CGI on Mac? (1997) Attn: Bug in GeneralStore example b15 (1997)