#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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Cache API | Version: | 2.0.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@hailite The
wp_create_nonceis 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?