I have identified an issue with the way views generates the unique dom_id and a CDN is sitting in front of Drupal being used as a full page cache. The problem arises because the dom_id is too unique (currently a hash of the view name, REQUEST_TIME
constant and PHP's rand
) and the page caching being served gets out of sync with what the views cache is expecting so the AJAX replacement for the exposed filter doesn't complete the replacement as the selector is not found.
To fix this, I have altered what is used to build the hash of the dom_id making it more predictable but kept the ability to use multiple views on a single page by wrapping it in drupal_html_id
.
Comment | File | Size | Author |
---|---|---|---|
#13 | views-dom_id_is_too_unique_and_causes_issues-2372897-13.patch | 651 bytes | Andrew Answer |
|
Comments
Comment #1
jacobbednarz CreditAttribution: jacobbednarz commentedComment #2
jacobbednarz CreditAttribution: jacobbednarz commentedComment #3
jacobbednarz CreditAttribution: jacobbednarz commentedComment #6
jacobbednarz CreditAttribution: jacobbednarz commentedComment #7
jacobbednarz CreditAttribution: jacobbednarz commentedComment #8
jacobbednarz CreditAttribution: jacobbednarz commentedBranch
Views - 7.x-3.x
is failing tests so this is pending those fixes (From what I can see anyway)Comment #9
jacobbednarz CreditAttribution: jacobbednarz commentedComment #10
jacobbednarz CreditAttribution: jacobbednarz commentedComment #11
Chris Matthews CreditAttribution: Chris Matthews commentedThe 4 year old patch in #1 to view.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.
Comment #12
jacobbednarz CreditAttribution: jacobbednarz commentedThanks for the poke Chris2. This isn't something that I need any longer since moving on from the company where this patch was required however I could see this being useful for others. If you or anyone else would like to pick this up and run with it, you're more than welcome but I won't be re-patching this for the latest release.
Comment #13
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.