Page 1 of 1

Cache files

Posted: Wed Jan 13, 2010 3:17 pm
by 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, and how to specify the address correctly?

Re: Cache files

Posted: Wed Jan 13, 2010 8:27 pm
by itistoday
cormullion wrote: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.
and how to specify the address correctly?
Not sure what you mean.

Re: Cache files

Posted: Wed Jan 13, 2010 10:22 pm
by cormullion
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.c ... ly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)

Re: Cache files

Posted: Wed Jan 13, 2010 10:31 pm
by itistoday
cormullion wrote:(I've been drawing graphs using canvas - http://unbalanced-parentheses.nfshost.c ... ly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)
Nifty. :-)

Re: Cache files

Posted: Thu Jan 14, 2010 4:58 pm
by hilti
Pretty nice graph Cormullion!

Re: Cache files

Posted: Thu Jan 14, 2010 5:54 pm
by cormullion
:) The code's a bit straggly though! :)