Opened 9 years ago
Closed 7 years ago
#33958 closed enhancement (fixed)
All Options Filter
Reported by: | sebastian.pisula | Owned by: | pento |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | has-patch has-unit-tests |
Focuses: | performance | Cc: |
Description
Add filter for all options
Attachments (2)
Change History (19)
#3
@
9 years ago
This looks like a duplicate of your previous ticket #33858 @sebastian.pisula, how is this ticket different?
#5
@
9 years ago
- Keywords close added
@sebastian.pisula Can you provide some more info about your use-case and why this filter is needed? Thanks.
#6
@
9 years ago
for example ACF Pro, options page. when I use get_field('field', 'options'); then I send request to MySQL for each get_field. I will be can use filter to merge Options and I will be use get_option to get Options From ACF Options Page.
This ticket was mentioned in Slack in #core by sebastian.pisula. View the logs.
9 years ago
#9
@
8 years ago
- Focuses performance added
- Keywords has-patch needs-refresh needs-unit-tests added; reporter-feedback close removed
- Milestone changed from Awaiting Review to 4.8
- Owner set to pento
- Status changed from new to assigned
A similar filter is used on WP.com, before the wp_cache_add()
in wp_load_alloptions()
, to ensure that $alloptions
isn't too big for the cache to handle.
A pre_cache_alloptions
along with the proposed alloptions
filter would be valuable.
Can you describe your use-case? Usually when a patch is submitted, we require an explanation of how you would use it and an example of why it's needed.