I don't think caching will help you here, since the image is a static
file.  The big difference is that in the case where you just link to
the image your web server can return it directly.  When you go through
the MediaView your webserver needs to use PHP which will always be
slower, regardless of the framework.

If you're just trying to prevent link stealing you should look into
handling this directly with your web server.

-Matt
http://www.pseudocoder.com


On Jun 10, 7:51 am, Galdan <beyer.tho...@gmail.com> wrote:
> Hi together,
>
> in my application i've a image gallery. And i show the images by a
> media view (against link stealing).
>
> But all the time the images gets parsed completly by the media view.
>
> So i wan't to cache the output for a long time (1 month or something).
>
> But the usual cache functions seems not to work with media views.
>
> For example, a page with 100 pictures takes about 30 seconds to get
> loaded when i use media views, and it takes only 3 seconds if i put
> them directly in the page by "image" tags.
>
> Does anybody know some hints?
>
> Thank you in advance
> bye
> Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to