Re: WebDelivery sweep speed (was Re: <no subject>)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26849
interpreted = N
texte = >Would that result in _everything_ being swept every 45 >minutes (including orders and carts) or just the >downloadable URLs?I just looked back into the code, and yes, it would affect everything in a way that you probably don't want. That explains why we haven't made it an official feature yet, because it's not polished yet.Here's how you can override the default behavior of the WebDelivery sweeper mechanism: you can write your own template that replaces the StoreBuilder-created SweepWebDelivery.tpl file. Remove the line that [include]s ^WebMerchant/SweepWebDelivery.inc and instead put your own WebDNA in there that deletes files based on your own criteria.In your new WebDNA inside that template, you can get at the WebDelivery folder with the following line:[text]WebDelFol=[lookup db=webmerchantprefs.db&lookinfield=preference&value=WebDeliveryFolder& returnfield=value¬found=webmerchant/webdelivery/][/text]You can get at the WebDelivery files like so:[ListFiles folder=../[WebDelFol]] ...do your stuff to decide which files need deleting here [/ListFiles]Technical Support ********************************** Smith Micro, Internet Solutions Div | Formerly, Pacific Coast Software 16855 West Bernardo Drive | ------------------------- Suite 380 | eCommerce (WebCatalog) San Diego, CA 92127 | Software & Site Development 858.675.1106 | http://www.smithmicro.com 858.675.0372 (fax) **********************************------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
>Would that result in _everything_ being swept every 45 >minutes (including orders and carts) or just the >downloadable URLs?I just looked back into the code, and yes, it would affect everything in a way that you probably don't want. That explains why we haven't made it an official feature yet, because it's not polished yet.Here's how you can override the default behavior of the WebDelivery sweeper mechanism: you can write your own template that replaces the StoreBuilder-created SweepWebDelivery.tpl file. Remove the line that [include]s ^WebMerchant/SweepWebDelivery.inc and instead put your own WebDNA in there that deletes files based on your own criteria.In your new WebDNA inside that template, you can get at the WebDelivery folder with the following line:[text]WebDelFol=[lookup db=webmerchantprefs.db&lookinfield=preference&value=WebDeliveryFolder& returnfield=value¬found=webmerchant/webdelivery/][/text]You can get at the WebDelivery files like so:[ListFiles folder=../[WebDelFol]] ...do your stuff to decide which files need deleting here [/ListFiles]Technical Support ********************************** Smith Micro, Internet Solutions Div | Formerly, Pacific Coast Software 16855 West Bernardo Drive | ------------------------- Suite 380 | eCommerce (WebCatalog) San Diego, CA 92127 | Software & Site Development 858.675.1106 | http://www.smithmicro.com 858.675.0372 (fax) **********************************------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 WebDNA Support

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:

New Web Site Developers Database (1996) Kinda [OT] Leopard & iTools (2008) Summing fields (1997) Setting up shop (1997) WebMerchant? (1998) redirect question (2001) [listfiles] (2004) No luck with taxes (1997) Clear command and ShoppingCart.tmpl (1997) Webcat causing crashes left and right! (1997) Posting form data to a popup (2004) window.navigate(url) (2001) [purgeDatabase], [replaceChars] and others ... (1997) Size of a folder? (2003) [OT] mozilla / Seamonkey (2007) select menus & database design (1998) Return records from another (1997) Initiating NewCart (1997) Replacing entry (1998) [searchString] (1997)