#20690 closed defect (bug) (invalid)
add_post_meta/update_post_meta and cache
Reported by: | nofearinc | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.2 |
Component: | Options, Meta APIs | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
I have a custom post type with 2 fields for price, second one has 5% discount and I want to populate it automatically by hooking to 'save_post'.
I have a working logic that calls update_post_meta() (or add_post_meta() ) for the second field but it doesn't get executed even with several post updates. However, if I end my function call with a var_dump that outputs the values from the function, everything goes smooth.
It looks like some caching issue to me that gets flushed per var_dump call, anyone able to reproduce?
Change History (5)
#3
@
11 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
@ericlewis it's been quite some time and haven't been able to reproduce that ever since, it was probably fixed months ago. Marking it as "invalid" and if anyone is able to reproduce, we could reopen.
Note: See
TracTickets for help on using
tickets.
It's been a while, but can we see some code @nofearinc?
It sounds like some missed wp_is_post_revision() checking. I'm leaning towards a worksforme.