Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
View cycle does not work properly when views cache was enabled. Only the first time when the all cache was flushed, javascript files loading correctly. Subsequent calls do not load the files.
I have the latest version views and views_cycle (6.x-1.x-dev).
Has anyone encountered a similar problem?
Comments
Comment #1
Crell CreditAttribution: Crell commentedIt looks like this is already being discussed over here, so let's merge issues: #577074: All rows appear on page load before cycle takes effect
Comment #2
Crell CreditAttribution: Crell commentedNo, wait, never mind, I'm wrong. :-)
Comment #3
Crell CreditAttribution: Crell commentedI suspect the issue here is that the JS and CSS files are added conditionally in the theme preprocess function. However, if you have display caching enabled (as opposed to query caching, which should work) then that function doesn't get re-called. I do not know of a way around that other than always including the CSS and JS files, which I am not excited about doing.
Actually even then, I'm not sure that would work because the javascript settings are added in the preprocess function, too, and we can't add that globally because it changes ever time. Hm. Someone ask merlin, please. :-) We may have to go back to adding all of the JS settings inline, which I really was hoping to avoid. It's quite ugly.
Comment #6
zdean CreditAttribution: zdean commentedsubscribe
Comment #7
Crell CreditAttribution: Crell commentedI've added a note to the README file that this module is not compatible with Views output caching. If anyone can figure out a way to make it compatible without a full rewrite, open a new issue. Thanks.