Commit 7f74328
authored
* Disable caching for wp_die() error pages
Fixes #1015
Hook wp_die_handler to define DONOTCACHEPAGE when wp_die() is invoked,
preventing error/interstitial pages (e.g. "Error establishing a Redis
connection") from being cached and served to subsequent visitors.
A wpsc_disable_cache_on_wp_die filter preserves the legacy behavior for
sites that intentionally render cacheable content via wp_die().
* Linting warning fix
1 parent bf44af1 commit 7f74328
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
160 | 183 | | |
161 | 184 | | |
162 | 185 | | |
| |||
0 commit comments