Cache files

Started by cormullion, January 13, 2010, 07:17:12 AM

Previous topic - Next topic

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?

itistoday

#1
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.
Get your Objective newLISP groove on.

cormullion

#2
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">//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...)

itistoday

#3
Quote from: "cormullion"(I've been drawing graphs using canvas - http://unbalanced-parentheses.nfshost.com/dragonfly_twitter">//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. :-)
Get your Objective newLISP groove on.

hilti

#4
Pretty nice graph Cormullion!
--()o Dragonfly web framework for newLISP

http://dragonfly.apptruck.de\">http://dragonfly.apptruck.de

cormullion

#5
:) The code's a bit straggly though! :)