Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Caching images from RDBMS

by giulienk (Curate)
on Aug 08, 2002 at 12:25 UTC ( #188571=note: print w/ replies, xml ) Need Help??


in reply to Re: Caching images from RDBMS
in thread Caching images from RDBMS

Thank you so much for the simplest, fastest and works like a charm solution ;)

Here's the modified line that makes the trick:

print header(-type => 'image/jpeg', -Content_length => length $file, -expires => '+30d', ), $file;


$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g


Comment on Re: Re: Caching images from RDBMS
Download Code
Replies are listed 'Best First'.
Re: Re: Re: Caching images from RDBMS
by waswas-fng (Curate) on Aug 08, 2002 at 14:47 UTC
    +30d? If your images are that static, why store them in the db? Just curious… =)

    -Waswas
      You should have read the whole thread: if the image change the URL by which it's called will change. See Re: Re: Caching images from RDBMS


      $|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://188571]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-30 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls