Problem/Motivation

When using views caching, the results and output is cached without considering the date pager.

Proposed resolution

See attached patch, by adding the pager value to the build_info, we can make sure that views is cached differently for different months, for example.

Note: This currently only works for the results cache, the output cache is cached based on the results, so if you're testing without having something to show in the calendar, then it will be cached incorrectly, see #2454671: Include build info in output cache for that.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
0 bytes
dawehner’s picture

Patch looks pretty straightforward, if not even trivial.

vijaycs85’s picture

@Berdir, hope you are testing the testbot with 0 bytes patch :)

Berdir’s picture

Grml, yeah, yeah, you're all soo funny :p

Status: Needs review » Needs work

The last submitted patch, 4: date-pager-cache-2454667-1.patch, failed testing.

Berdir’s picture

Status: Needs work » Needs review
FileSize
1019 bytes

And another attempt.

Status: Needs review » Needs work

The last submitted patch, 6: date-pager-cache-2454667-1.patch, failed testing.

Berdir’s picture

FileSize
607 bytes

I think I should just go home.

Berdir’s picture

Status: Needs work » Needs review
Chris Matthews’s picture

The 4 year old patch to date_views_plugin_pager.inc in #8 still applies cleanly to the latest 7.x-2.x-dev and seems like a reasonable/necessary fix to me.