A views block display created with views carousel plugin style doesn't work if you have block caching enabled at admin/settings/performance, even when the block settings in the view display is set to 'Do not cache'. The css and js are not added to the page.
Steps to replicate:
1. Create a view with a block display that uses the Views Carousel plugin style.
2. Leave the block caching setting at 'Do not cache' in the view
3. Add the block to a region on your homepage
4. Turn on block caching at admin/settings/performance
5. logout and refresh the homepage a few times.
The first time the page loads it works fine, but any subsequent loads will not show the view as a carousel as the js and css are not added to the page. This may just be an underlying problem with block caching itself, but I thought BLOCK_NO_CACHE would mean the block wouldn't get cached when sitewide block caching is enabled.
I'm marking this as critical, since having block caching enabled on a production site is pretty much standard operating procedure.
Comments
Comment #1
q0rban commentedHmm, so somehow I can't replicate this anymore. I definitely had the view display set to BLOCK_NO_CACHE, and I definitely cleared the cache after doing that, but now it works. (crossing fingers)
Comment #2
q0rban commentedDang it. The reason I couldn't replicate it anymore is because I turned off block caching. Ha!
Comment #3
q0rban commentedOk, I think I figured out what the problem was, in case anyone else runs into this. I looked at my blocks table and noticed there was no row in there for my block display. So after updating the block caching setting in the view, I needed to visit admin/build/block to rehash the blocks.