RE: Formulas.db + Users.db

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12177
interpreted = N
texte = From my understanding, here's what the following commands do: $flushcache $quit $closedatabase$flushcache empties the template RAM cache, which guarantees that from that point on, all pages served will be the most recent ones. This command does *nothing* to affect the databases held in RAM.Note: From my understanding, this command is obsolete. I recently learned that WebCat2 now provides Smart Caching. This means that WebCat2 compares the modification date of a cached template with the modification date of the same template on disk ... and if the disk version is more recent, that template is updated in the cache before it is served. This means you never have to worry about getting the most recent version of a cached template, because WebCat2 takes care of that for you automatically. Cool, very cool ... :) $quit closes *all* the databases, which means the database contents that were in RAM are immediately written to the disk. Therefore, if you plan to make any changes to a database manually, you have to close it first, or WebCat2 will overwrite your changes with the RAM version of that db file the next time it is closed.The $quit command does *not* quit WebCat2. It *used to* quit the CGI, but it doesn't do that anymore. You cannot quit the plugin anyways, at least without quitting WebSTAR ... and to quit the CGI you must do so manually - not by using the $quit command. $closedatabase closes the *one* specific database you name as a parameter to this command. Use this command to close one database while leaving all the others open. Sincerely, Ken Grome WebDNA Solutions Associated Messages, from the most recent to the oldest:

    
From my understanding, here's what the following commands do: $flushcache $quit $closedatabase$flushcache empties the template RAM cache, which guarantees that from that point on, all pages served will be the most recent ones. This command does *nothing* to affect the databases held in RAM.Note: From my understanding, this command is obsolete. I recently learned that WebCat2 now provides Smart Caching. This means that WebCat2 compares the modification date of a cached template with the modification date of the same template on disk ... and if the disk version is more recent, that template is updated in the cache before it is served. This means you never have to worry about getting the most recent version of a cached template, because WebCat2 takes care of that for you automatically. Cool, very cool ... :) $quit closes *all* the databases, which means the database contents that were in RAM are immediately written to the disk. Therefore, if you plan to make any changes to a database manually, you have to close it first, or WebCat2 will overwrite your changes with the RAM version of that db file the next time it is closed.The $quit command does *not* quit WebCat2. It *used to* quit the CGI, but it doesn't do that anymore. You cannot quit the plugin anyways, at least without quitting WebSTAR ... and to quit the CGI you must do so manually - not by using the $quit command. $closedatabase closes the *one* specific database you name as a parameter to this command. Use this command to close one database while leaving all the others open. Sincerely, Ken Grome WebDNA Solutions Kenneth Grome

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:

CGI and SSI (2002) Webstar and WebCatalog (1999) CommandSecurity? (1997) OT: SMSI stock (2003) Order Date (2003) Databases going to sleep (1998) [WriteFile] problems (1997) Strange conversions (2001) Kill the webcat process (2000) Closing Databases (1998) Text data with spaces in them... (1997) PIXO (1997) Credit Card Checksum (1997) New Command prefs ... (1997) [WebDNA] To be or not to be friendly (URLs) (2011) More on the email templates (1997) Parameter Passing (2000) Major bug report on rootbeer (1997) Error.html (1997) Opinion: [input] should be called [output] ... (1997)