Download & Extend

jCarousel is not compatible with Views render caching

Project:jCarousel
Version:7.x-2.4-alpha3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The flow is the following.
- Clear cache, everything works ok.
- Do an operation that requires cleaning partially the cache and the jcarousel is breaking because the page doesn't include anymore jcarousel javascripts.

Comments

#1

After searching a little bit the web I've found that this is a known problem. The caching is caching only the html, but it not adding the css.
My solution was to add jcarousel_add() to my template preprocess function.

#2

Did you add the entire function directly from the module? Can you give a little more detail on your fix? That would be awesome.

#3

I am using Views 3. I'm trying to figure out if most pagers take caching into account. I'm certainly not able to enable Views Content Cache on a Jcarousel based view. The display won't move past the first page. Paging basically works with infinite scroll and caching unless you have exposed filters.

#4

maybe this is only an issue w/ Views 3? Can someone speak to this?

#5

Title:Problems when enabling cache» jCarousel is not compatible with Views render caching
Priority:major» normal

Yes this issue is very similar to #1296632: Compatibility with block caching. I suggest simply not using the render cache on jCarousels for the time being. This problem *should* be solvable in Drupal 7 with the new render API, but we have not yet implemented it in the jCarousel module.