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 toreceiving the deletefile. There's an old copy loaded in RAM, aimed at blowingaway the new copy you have just written to disk, baby. (Sorry, the gunmetaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. Itwould be great if you could use a tag to flush RAM & stop processing of all WCcommands, etc., except for file manipulations, then resume full processingafter file manipulations were complete.-Pat
Associated Messages, from the most recent to the oldest:
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 toreceiving the deletefile. There's an old copy loaded in RAM, aimed at blowingaway the new copy you have just written to disk, baby. (Sorry, the gunmetaphore made my testosterone gland tingle.)I think you have to quit WebStar & WebCat CGI, replace the db & relaunch. Itwould be great if you could use a tag to flush RAM & stop processing of all WCcommands, etc., except for file manipulations, then resume full processingafter 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)