Problem/Motivation
#2352239: Use base form id for tokens in order to minimize ajax requests on repeated forms (e.g. commerce add-to-cart) paves the road for reducing the number of Ajax requests considerably under some circumstances. This patch introduces the necessary changes for the Ajax component.
Proposed resolution
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2352967-authcache-ajax-aggregate-requests.diff | 4.3 KB | znerol |
Comments
Comment #1
znerol commentedComment #2
znerol commentedComment #5
Colin @ PCMarket commentedFollowing with interest...
Is this patch likely to help speed up ubercart ajax requests also?
Comment #6
znerol commentedThis patch does not speed up Ajax requests. Instead it makes sure that only one request is triggered for duplicated fragments (i.e. fragments with the same URL).
Together with the other patch referenced as a related issue, this will reduce the number of Ajax requests necessary to retrieve CSRF form tokens when one form is repeated multiple times on a page. This is a common pattern for the add-to-cart form in Drupal Commerce, but it also may apply to Ubercart.
Comment #8
znerol commented