Pergunta

I am using Drupals boost module to cache my very dyanmic website.

I also am using a views block to load in banner images from a content type and the view is set to randomly load an image.

However, because boost module is caching the pages as html, what ever random images is loaded when the page is cached is what I am stuck with.

Is there any to mix the boost html cache with random loading images? The effect i am trying to get is a random banner but still use boost module.

Maybe a non-views solution.

Thanks for any ideas and if there is not solution and this is just a trade off of lots of caching please let me know.

Foi útil?

Solução

You'll have to use AJAX to display the block (see discussion here).

Outras dicas

Since Boost turns your Drupal site into static pages, the only way I can think of would be to have Javascript/jQuery handle randomizing the image that gets loaded. Something along the lines of imBannerRotater's random mode or other similar Javascript scripts should work.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top