Quelques conseils pour mettre en cache des images avec Zend_Cache_Frontend_Page :
Exemple de configuration :
<?php
$pageFrontendOptions = array(
'lifetime' => null, // Les données du cache n'expire pas
'memorize_headers' => array('Content-type', 'Content-length'),
'regexps' => array(
'^/images/thumbnail/' => array(
'cache' => true,
'cache_with_cookie_variables' => true,
'cache_with_get_variables' => true,
'tags' => array('thumbnails')
)
)
);
?>
Ajouter un commentaire