Re: Media View and Caching
Hi together, thank you for the responses. Link-Protection is not the only reason why i use them. I also use Media Views for counting the hits on the images. I changed the application in the way that thumbnails dont get loaded by mediaview and only the high-res pictures (which should get counted and protected) are done by it. Thank you! bye Tom On 10 Jun., 18:04, brian wrote: > On Wed, Jun 10, 2009 at 10:56 AM, Matt Curry wrote: > > > 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. > > Just to add to Matt''s comment: look into using mod_rewrite to prevent > hotlinking. Using MediaView for this is overkill. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Media View and Caching
On Wed, Jun 10, 2009 at 10:56 AM, Matt Curry wrote: > > 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. > Just to add to Matt''s comment: look into using mod_rewrite to prevent hotlinking. Using MediaView for this is overkill. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Media View and Caching
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 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 -~--~~~~--~~--~--~---