Automattic / Automattic/wp-super-cache

[Super Cache] Show missing modules notice when using header related constants

Open
#982 0 comments 0 reactions 0 assignees View on GitHub
[Plugin] Super Cache enhancement
Dominant language
PHP
Stars
436
Forks
130
Avg merge
15h 11m
Merged PRs (30d)
10

Description

### Impacted plugin

Super Cache

### What

When using WPSC_CACHE_CONTROL_HEADER to set a custom header, if the related apache modules are not enabled, the header won't be set. We could show a notice that related apache modules are missing.

### How

There's already a missing modules notice shown, but that's only visible when enabling Advanced caching:
![image](https://user-images.githubusercontent.com/11799079/214526159-2950dc84-0d36-4660-ad37-65612f31d303.png)

Since the constant is present on each WP load, it should be fairly easy to update the check that handles showing the notice, so it always shows if something's misconfigured.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.