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

Crell’s picture

Status: Active » Closed (duplicate)

It 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

Crell’s picture

Status: Closed (duplicate) » Active

No, wait, never mind, I'm wrong. :-)

Crell’s picture

I 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.

zdean’s picture

subscribe

Crell’s picture

Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.