Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-05-31 08:43:15

tamara2010
New member
Registered: 2010-05-31
Posts: 4

ZC34 - Implementing zend cache

Hi, i'm working on a project where I have a drop down of a certain category items. The items are populated from a database table. There are more than 1000 items and it will increase in the future. I'm thinking of using cache, because the category is not being updated very often. This drop down form is used in an editor page, where one of the item will be selected. My question is how do you cache this drop down form if one of the item need to be selected? My current solution is to create cache for each selected item.
So there will be more than 1000 caches for this drop down.

For example:

Cache 1: populate drop down with item-1 selected
Cache 2: populate drop down with item-2 selected
and so on...

My question: Is there a better way to do this?

Offline

#2 2010-06-15 00:41:55

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: ZC34 - Implementing zend cache

Hey Tamara,

sorry for the late response, but let me take a crack at it. An in-memory cache would be fine for something of this sort (like memcache) since you will naturally want to have these lists close at hand. I would suggest against select boxes for such large menus and opt for something like an autocomplete control.

Offline

#3 2010-06-27 08:34:53

tamara2010
New member
Registered: 2010-05-31
Posts: 4

Re: ZC34 - Implementing zend cache

that's a good idea to use autocomplete control.. thanks

Offline

Board footer

Powered by FluxBB