Page 1 of 1

PHP caching for dynamic drop downs

Posted: Wed Apr 14, 2004 3:21 pm
by cs8sz
HI Guys,

I have a web site which uses pages to save user preferences, each page can have up to 10 dop down menus each of which are held in a database. I don't really want to hit the database each time I create a drop down. Is there another way? Ps I am using a apache on Linux with MYSQL 5.0 if it helps.

I know that ASP provides the functionality does PHP? As I don't really want to create my own caching object, I belive that apache provides the mod_cache function, but I can't find anything on this.

Thanks for the help

Chris

Posted: Wed Apr 14, 2004 7:06 pm
by RadixDev
I've written out the code somwhere else today but can't be bothered to look for it again :lol:
Actually i found it!? :wink:

viewtopic.php?t=20834

Posted: Thu Apr 15, 2004 11:35 am
by cs8sz
Thanks for that, but I would really like to find away of actaully storing the drop down list which the DB returned, into memory for faster response, otherwise my web site I fear could become very slow indeed.

Chris