#46365 closed enhancement (invalid)
Add a filter to `wp_create_nonce` to allow expired nonces to regenerate if the page is cached
Reported by: | hailite | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.3 |
Component: | Cache API | Keywords: | has-patch |
Focuses: | Cc: |
Description
By default, if a page is cached, the related nonce will be cached too. If the page cache's TTL is over 24 hours, the nonce will expire during that time.
By giving the nonce generation function a filter before returning the value, a nonce can have the ability to regenerate for the cache plugins that have ESI or partial/fragment cache functionality.
Attachments (1)
Change History (5)
#1
follow-up:
↓ 2
@
6 years ago
- Keywords reporter-feedback needs-unit-tests added
- Version changed from trunk to 2.0.3
#2
in reply to:
↑ 1
@
6 years ago
- Resolution set to invalid
- Status changed from new to closed
@spacedmonkey Good point. Will override that function. Thanks.
Note: See
TracTickets for help on using
tickets.
@hailite The
wp_create_nonce
is plugable, as you can replace it all together in your own code. If you need this filter, then you can register your own function. Why does this filter need to be core?