PHP caching for dynamic drop downs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cs8sz
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2004 3:21 pm

PHP caching for dynamic drop downs

Post 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
RadixDev
Forum Commoner
Posts: 66
Joined: Sun Mar 14, 2004 11:27 am
Location: U.K.

Post 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
cs8sz
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2004 3:21 pm

Post 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
Post Reply