Commit 6007f23
committed
chore: drop POC-misleading transient SQL in uninstall
Persistent object caches store transients outside wp_options, so the
SQL DELETE patterns for _transient_page_for_* / _transient_timeout_*
were a partial cleanup at best — they ran on every uninstall but did
nothing useful on POC-enabled sites.
The mapping-driven loop above already calls delete_transient(), which
is POC-aware, so known-CPT transients are correctly cleaned in both
storage modes. The SQL fallback is now narrowed to orphan page_for_*
options only, with a comment explaining why transient orphans aren't
covered.1 parent 3d3ae8f commit 6007f23
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
0 commit comments