Closed (duplicate)
Project:
Views random seed
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 23:52 UTC
Updated:
4 Nov 2011 at 21:40 UTC
Session variables are getting created unnecessarily for view instances that use the same seed for every user. This is causing Varnish page caching to get bypassed for anonymous users when a system variable alone will suffice. Attached is a patch against 6.x-1.x-dev that only uses session variables when a view requires a different seed per user. The patch allows site builders to use this module without bypassing Varnish page caching provided they don't require different seeds for each user.
| Comment | File | Size | Author |
|---|---|---|---|
| views_random_seed_sessvar.patch | 3.21 KB | aether |
Comments
Comment #1
aether commentedComment #2
swentel commentedHmm, this looks pretty much the same as the patch in #1289734: Different content being displayed for different users - also, there's a print statement in your patch.
Comment #3
aether commentedHa! That does indeed look like it does the same thing. I probably didn't find it cuz I was searching for varnish related issues. Ah well. Marking as duplicate of #1289734: Different content being displayed for different users.