You could use a special cache config with serializing disabled and use
it like this:
$blob = '......';
Cache::write('abc',$blob,'name_of_special_config');
See http://api.cakephp.org/class_cache.html
On 23 Jun., 21:07, "Erik Kristensen" <[EMAIL PROTECTED]>
wrote:
> Afternoon,
>
> I have been trying to figure this out for some time now, and I am not
> sure it is even possible with CakePHP's caching mechanism right now,
> but does anyone know how you can cache a file whether it is a pdf or
> an image from a database?
>
> Basically I have a controller/action that pulls a blob from a database
> record, it happens to be an image, and then supplies the right header
> in the action and prints the contents of the blob. I would like to be
> able to do view caching here, but have been unable to.
>
> Any thoughts?
>
> Thanks,
> -Erik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---