Re: db caching in bizarre ways

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37379
interpreted = N
texte = Terry Wilson wrote: > > I went from WebCat 2.6 to 4.0.2rc1 last month. After beating my head > against the wall with several WebStar crashes a day for 6 weeks, I > gave up on 4 and am now running (almost) solid with 3.0.7. But a new > problem has cropped up. > > I have admin pages where I can tweak a user's account, most notably, > change his status from 'current' to 'expired' (using my own db, not > the built-in users.db). After switching to ver 3 last night, my admin > edits are being written to disk, but seemingly not to RAM. Unless I > search anew explicitly for one record. I'm certainly confused. When I > do a search to collect all the records that expire today, I get three > members. I change them to expired, and a check to the db file on disk > shows them changed. But when I again search for expired members, they > show up again, and the edit pages for the individuals also show their > previous 'current' status. However, when I hit reload on either of > those pages, I get the correct, updated 'expired' status. So it seems > to be a browser caching issue. However, what does that have to do > with WebCat, and why would ver 2 and ver 4 work, but ver 3 not? The > WebCat 'Show Databases' page does not show the updated number of > records after adding or deleting records either.What browser are you using? Some flavor of IE, perchance? It is possible that the browser is caching your previous search (though you obviously don't want it to). Search the archives and look for my MIMEHeaders.inc file and add that to your pages, ala [INCLUDE file=^MIMEHeaders.inc&includes=0]which should stop any flavor of browser from caching the page.> > I have checked to see if I refer to the db in two different ways (per > some discussion in the archives), but it is always referred to as > relative (in the same folder as the templates). > > There's also something funny going on with carts hanging around in my > browser cache. command=Newcart doesn't make a new one, nor does > specifying [cart] in the template, when none was passed, make a new > one. Hitting Reload does kick in a new cart. God what a mess.command=newcart is deprecated (note from the docs): This command is no longer supported as of Version 4.0.Get used to not using it. This also sounds like your browser is getting in the way here as well. See if the MIMEHeaders include file fixes it too. Any time that hitting Reload changes anything (except if you are using embedded contexts in the page) is a sure sign of caching issues.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: db caching in bizarre ways (Jesse Proudman (Lists Account) 2001)
  2. Re: db caching in bizarre ways (John Peacock 2001)
  3. Re: db caching in bizarre ways (Glenn Busbin 2001)
  4. db caching in bizarre ways (Terry Wilson 2001)
Terry Wilson wrote: > > I went from WebCat 2.6 to 4.0.2rc1 last month. After beating my head > against the wall with several WebStar crashes a day for 6 weeks, I > gave up on 4 and am now running (almost) solid with 3.0.7. But a new > problem has cropped up. > > I have admin pages where I can tweak a user's account, most notably, > change his status from 'current' to 'expired' (using my own db, not > the built-in users.db). After switching to ver 3 last night, my admin > edits are being written to disk, but seemingly not to RAM. Unless I > search anew explicitly for one record. I'm certainly confused. When I > do a search to collect all the records that expire today, I get three > members. I change them to expired, and a check to the db file on disk > shows them changed. But when I again search for expired members, they > show up again, and the edit pages for the individuals also show their > previous 'current' status. However, when I hit reload on either of > those pages, I get the correct, updated 'expired' status. So it seems > to be a browser caching issue. However, what does that have to do > with WebCat, and why would ver 2 and ver 4 work, but ver 3 not? The > WebCat 'Show Databases' page does not show the updated number of > records after adding or deleting records either.What browser are you using? Some flavor of IE, perchance? It is possible that the browser is caching your previous search (though you obviously don't want it to). Search the archives and look for my MIMEHeaders.inc file and add that to your pages, ala [INCLUDE file=^MIMEHeaders.inc&includes=0]which should stop any flavor of browser from caching the page.> > I have checked to see if I refer to the db in two different ways (per > some discussion in the archives), but it is always referred to as > relative (in the same folder as the templates). > > There's also something funny going on with carts hanging around in my > browser cache. command=Newcart doesn't make a new one, nor does > specifying [cart] in the template, when none was passed, make a new > one. Hitting Reload does kick in a new cart. God what a mess.command=newcart is deprecated (note from the docs): This command is no longer supported as of Version 4.0.Get used to not using it. This also sounds like your browser is getting in the way here as well. See if the MIMEHeaders include file fixes it too. Any time that hitting Reload changes anything (except if you are using embedded contexts in the page) is a sure sign of caching issues.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

Satistics (1999) WC Database Format (1997) Shipcost formula (2004) WebCat2 beta 11 - new prefs ... (1997) Trouble with [fileinfo] - update: TIP OF THE DAY (THE/) [WebDNA] OT: what is the "right" platform ? (2009) 2nd WebCatalog2 Feature Request (1996) emailer w/F2 (1997) Frames and WebCat (1997) Bug Report, maybe (1997) Problems getting parameters passed into email. (1997) Virtual hosting and webcatNT (1997) can't find the pdf (1999) DD/MM/YY reseting (1999) WebCat 3.04-3.07 plug-in dying on server.... (2000) Sitebuilder (2004) WebCat 4.0 (2000) international time (1997) RE: [isfolder] and [filename] (1997) WebCatalog 2.1 License for Sale (1998)