I have a page node, with an embedded view (viewfield) that has several exposed filters in a block. The first time the view is loaded, and cached, the pager's links seem to be cached with whatever filter settings happen to be set at the time. From then on, if I change one of the filters and then use the pager, the filters change back to their cached value.
For example, lets say I have an exposed "Color" filter, which can be Red, Blue, or Green. And lets say the filter is on Red the first time the view is loaded. Then, I change the filter to Green and the view changes. Then I click the pager to advance to the second page. Rather than show me the second page of "green" nodes, the filter will change back to Red and the view will go to the second page of "red" nodes. If I change the filter to Green, clear the cache, then change the filter to Red and advance the pager, the filter will now revert to Green.
This happens both with views built-in caching and with Views Content Cache. If I disable views caching all together, the pager works as expected.
Comments
Comment #1
dawehnerI recommend you to try out the dev version of views 2.x first. Afaik it's fixed there.
Comment #2
jstollerThere is no views-6.x-2.x-dev release. I'd have to move to Views 3, which is a major change that's still in alpha and I'm uncomfortable using it on a production site.
Comment #3
dawehnerThat's not true. http://drupal.org/node/95897
Comment #4
jstollerSorry. It wasn't listed on the main views page and when I did a search on the views releases page it didn't come up. I didn't notice there were several other pages of views releases.
I've installed views-6.x-2.x-dev and the problem still persists. That release is supposed to have fixed a problem with caching of exposed filter blocks (#910864: Exposed filter blocks are cached), which may or may not be related to my problem, but if it is, the fix isn't fixing this.
Any suggestions?
Comment #5
jstollerJust to rule out more variables, I tried creating a page display in the same view I was having this problem in, rather than my embed display. I also left the exposed filters in the view, rather than putting them in a block. The pager still exhibited the same issue.
Comment #6
bibo commentedSubscribing.
Noticed this same behaviour on D7 with views_content_cache, but apparently the time-based cache and its pager works just like it.
I think I need to test if this happens with D7 and views 3.x. Or has someone already tested it?
Comment #7
jboese commentedSubscribing.
Comment #8
jstollerGlad to see I'm not the only one experiencing this issue. I just tested it again with the latest veiws-6.x-2.x-dev release and the caching problem is still present.
Comment #9
alphex commentedSubscribing to this.
Comment #10
jlyon commentedI have also been experiencing similar issues with 7.x-dev on a calendar view.
Comment #11
miaoulafrite commented+1
Comment #12
izarco commented+1
Comment #13
dawehnerThat's simply a duplicate of #1055616: Query arguments should be replaced before generating cache ID