Opened 4 years ago
Closed 4 years ago
#10981 closed defect (bug) (fixed)
Storing rewrite_rules in a transient causes issues with non-permanent object caches and plugins that add endpoints
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 2.9 |
| Component: | Rewrite Rules | Version: | 2.9 |
| Severity: | major | Keywords: | dev-reviewed |
| Cc: |
Description
If a WP install is using a non-permanent object cache like Memcache, its "transient"-stored rewrite_rules entry will go away without warning and WP will regenerate it. That regeneration happens before init, where many plugins use add_rewrite_endpoint(). Thus the rules will get populated without the endpoint.
e.g. http://wordpress.org/support/topic/313946
Recommend we revert to old option-based method of rewrite_rules storage.
Attachments (2)
Change History (5)
markjaquith — 4 years ago
comment:1
markjaquith — 4 years ago
- Owner changed from ryan to markjaquith
- Status changed from new to accepted
[10/19/09 4:27:23 PM] Mark Jaquith: so this will just be a reversion to our behavior pre-transients. [10/19/09 4:27:45 PM] Ryan Boren: Yeah. Sounds like the correct fix.
comment:3
markjaquith — 4 years ago
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.

switches to storing the rules in an option, like before.