Hello,

I have a question about caching and hope somebody can help me with
it..? My question is the following:

I generate a menu from my database. Every menu-item has three images
(normal, hover, selected). The menu can be editted via a webinterface.
So, for a new menu-entry, people have to provide some data, along with
three images. Because I don't want the mess with many different images,
I store them in the database.

This appears to be a little slow, apparently fetching images from mysql
takes a little time. So what I want to do is use Cake's caching system,
to cache these images (because they won't often change this should be
very well possible).

To view one of the three images, there is a action in my controller, so
a call would be like:
/menu/showimage/<menuitem-ID>/hover (or another imagetype). This action
gets the data from the database and echoes it, preceded by the correct
headers.

After looking up Cake's manual, I still don't get it to work. How can I
cache these images (can I?), which are in fact nothing more than a,
somewhat specific, view?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to