newLISP Fan Club

Forum => So, what can you actually DO with newLISP? => Dragonfly => Topic started by: cormullion on January 13, 2010, 07:17:12 AM

Title: Cache files
Post by: cormullion on January 13, 2010, 07:17:12 AM
Where's a good place to put cache files? I want to cache some data from run to run, wonder where the best place to put it would be, and how to specify the address correctly?
Title: Re: Cache files
Post by: itistoday on January 13, 2010, 12:27:35 PM
Quote from: "cormullion"Where's a good place to put cache files? I want to cache some data from run to run, wonder where the best place to put it would be,


Put it wherever you want, but outside of the dragonfly-framework folder.


Quoteand how to specify the address correctly?


Not sure what you mean.
Title: Re: Cache files
Post by: cormullion on January 13, 2010, 02:22:11 PM
OK, thanks. It's now in databases/, seems like a good place.



I was just asking in case there was some recommended way of specifying paths, such as (string DOCUMENT_ROOT "blah"), but don't worry, it works as I expected.



(I've been drawing graphs using canvas - //http://unbalanced-parentheses.nfshost.com/dragonfly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)
Title: Re: Cache files
Post by: itistoday on January 13, 2010, 02:31:42 PM
Quote from: "cormullion"(I've been drawing graphs using canvas - //http://unbalanced-parentheses.nfshost.com/dragonfly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)


Nifty. :-)
Title: Re: Cache files
Post by: hilti on January 14, 2010, 08:58:33 AM
Pretty nice graph Cormullion!
Title: Re: Cache files
Post by: cormullion on January 14, 2010, 09:54:19 AM
:) The code's a bit straggly though! :)