Re: FlushDatabase Suggestion

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18050
interpreted = N
texte = Bob Minor wrote:> [copyfile path=new/yourdb.db&to=yourdb.db] > [copyfile path=yourdb.db&to=backup/archive.db](just for protection) > [closedatabase path/to/some.db] > [deletefile path=yourdb.db] > [copyfile path=path/to/some.db&to=../somefolder/archive.db]But hits are arriving the entire time these commands are being processed. Immediately after receiving a closedatabase, WC could receive hits prior to receiving the deletefile. There's an old copy loaded in RAM, aimed at blowing away the new copy you have just written to disk, baby. (Sorry, the gun metaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. It would be great if you could use a tag to flush RAM & stop processing of all WC commands, etc., except for file manipulations, then resume full processing after file manipulations were complete.-Pat Associated Messages, from the most recent to the oldest:

    
  1. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  2. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  3. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  4. Re: FlushDatabase Suggestion (Kenneth Grome 1998)
  5. Re: FlushDatabase Suggestion (bob 1998)
  6. Re: FlushDatabase Suggestion (bob 1998)
  7. Re: FlushDatabase Suggestion (bob 1998)
  8. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  9. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  10. Re: FlushDatabase Suggestion (Kenneth Grome 1998)
  11. Re: FlushDatabase Suggestion (Bob Minor 1998)
  12. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  13. Re: FlushDatabase Suggestion (Bob Minor 1998)
  14. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  15. Re: FlushDatabase Suggestion (Kenneth Grome 1998)
  16. Re: FlushDatabase Suggestion (Pat McCormick 1998)
  17. Re: FlushDatabase Suggestion (Kenneth Grome 1998)
  18. FlushDatabase Suggestion (Pat McCormick 1998)
Bob Minor wrote:> [copyfile path=new/yourdb.db&to=yourdb.db] > [copyfile path=yourdb.db&to=backup/archive.db](just for protection) > [closedatabase path/to/some.db] > [deletefile path=yourdb.db] > [copyfile path=path/to/some.db&to=../somefolder/archive.db]But hits are arriving the entire time these commands are being processed. Immediately after receiving a closedatabase, WC could receive hits prior to receiving the deletefile. There's an old copy loaded in RAM, aimed at blowing away the new copy you have just written to disk, baby. (Sorry, the gun metaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. It would be great if you could use a tag to flush RAM & stop processing of all WC commands, etc., except for file manipulations, then resume full processing after file manipulations were complete.-Pat Pat McCormick

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:

remotely add + sign (1997) Quitting WebMerchant ? (1997) ConvertCharacters (2000) checksum for credit cards? (1997) Pithy questions on webcommerce & siteedit (1997) Re:no [search] with NT (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Problems getting parameters passed into email. (1997) Fufillment e-mail? (1998) blank page from template (1997) Num Sort Descending (2004) [OT] Happy Turkey Day! (2003) Navigator 4.0 & tables (1997) form data submission gets truncated (1997) Trouble with formula.db (1997) Frames and WebCat (1997) WebCat2b15MacPlugin - [protect] (1997) headers (2000) PHP vs WebCatalog (2000) Adding multiple items to cart with one click? (2000)