I'm not sure if this really is issue, however i suposse so.

How to reproduce:
- create some view with some items
- set pager to let's say 3, and enable time based cache for let's say 5 minutes
- go to the view page without items_per_page in url
- after first load the query or data are cached, and the items_per_page is ignored for next request

Could please somebody confirm or deny if they have same issue, and or if this is expectable behaviour. Anyway i wouldn't expect this kind of caching. I suppose the cache have some key, and the key should also work with the items_per_page somehow... Any help appreciated, thanks in advance.

CommentFileSizeAuthor
#3 views-cachekeypatch-1469074-5694088.patch655 bytesmorf2009
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

morf2009’s picture

I made some quick research, and really.

File: plugins/views_plugin_cache.inc
Function: views_plugin_cache::get_results_key()

Line:
foreach (array('exposed_info', 'page', 'sort', 'order') as $key) {

Should be:
foreach (array('exposed_info', 'page', 'sort', 'order','items_per_page') as $key) {

Please correct me if i'm wrong. Thanks!

dawehner’s picture

Can you add offset as well?

Here is a tutorial how to create patch files: http://drupal.org/patch/submit

morf2009’s picture

Status: Active » Needs review
FileSize
655 bytes

Sure! Thanks for your quick reply. Here is the patch, let me know if there is anything else i can do :)

morf2009’s picture

Does the patch meet the requirements?

dawehner’s picture

Version: 7.x-3.3 » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Please don't push your issues, you know there are so many other issues, it's even hard to just get all the mail notifications...

Committed to 7.x-3.x, as it looks fine, though it would be kind of helpful to have this on 6.x-3.x as well.

webpurify’s picture

please delete this message.

morf2009’s picture

Thanks, i completely agree it should be in 6.x too. And sorry for pushing my issue...

Chris Matthews’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue