문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top