From experience, using a disk based cache means that you have to write
all of the code to manage the cache ... sure Zend_Cache can help but at
that point it's the same as using memcached..
The "easier" way is to use Apache mod_cache and just have a simple URL
structure that will have Apache check memcached if it's not found then
call your PHP code to generate the image..
--koblas
Daniel Freudenberger wrote:
Hello,
what do you think about storing the resized image on disc?
best regards,
Daniel
*From:* Juan Felipe Alvarez Saldarriaga [mailto:[EMAIL PROTECTED]
*Sent:* Friday, September 07, 2007 11:52 PM
*To:* [email protected]
*Subject:* [fw-general] Cache images using Zend_Cache
J
I have this situation, Im doing a resize of an image on the fly, with
a class using GD2, so I call an action with some parameters and then I
resize and show the image, the problem is that this operation takes a
little bit of time, but the image generate is not cached, cause is on
the fly (I know J), Is there a way to cache a "reource image"
($rscImage = imagecreatefromgif( "big_image.gif" );) using Zend_Cache
? or maybe (I don't know) add a header to cache this file on the
client side or something ?
Thx for any help.
------------------------------------------------------------------------
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as information could
be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
or contain viruses. The sender therefore does not accept liability for
any errors or omissions in the contents of this message, which arise
as a result of e-mail transmission. If verification is required please
request a hard-copy version.