Commit 7f7cf79
committed
Suppress content filters on internal asset bookkeeping queries
init_asset_parents() and process_parent_assets() run internal WP_Query
lookups over Cloudinary's own asset post type. These are not public-facing
content queries, but they still fire third-party the_posts/posts_results
filters, which can cause a theme/plugin to run expensive per-query work
(e.g. author-archive injection) on every one of Cloudinary's internal
queries until the request exhausts memory.
Set suppress_filters => true on these fully-specified internal queries so
they skip content filters. The WordPressVIPMinimum SuppressFilters rule is
suppressed with an explanation: these queries do not rely on the
posts_where/join/orderby filters the rule protects.1 parent 687f24a commit 7f7cf79
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
612 | 617 | | |
613 | 618 | | |
614 | 619 | | |
| |||
987 | 992 | | |
988 | 993 | | |
989 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
990 | 1000 | | |
991 | 1001 | | |
992 | 1002 | | |
| |||
0 commit comments