Automattic / Automattic/wp-super-cache

WP-CLI compatibility issues

Open
#902 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

There are 3 main issues (differences between web request and WP-CLI):

* Global variables need to be explicitly globalized [in order to function as expected in WP-CLI](https://github.com/wp-cli/wp-cli/issues/4019).
* WP-CLI doesn't load `advanced-cache.php`.
* `$_SERVER` variables ( HTTP_HOST, REQUEST_URI, HTTP_USER_AGENT, , ... ) are empty.

Until now, we have merged Automattic/wp-super-cache#384 (prevent creating output buffer for php-cli commands), Automattic/wp-super-cache#499 (fixes wp-cli plugin deactivate/activate ), Automattic/wp-super-cache#576 (fixes infinite amount of semaphore), Automattic/wp-super-cache#191 (avoids a PHP notice), Automattic/wp-super-cache#465 (move functions in phase1 file into phase2 file and load that everywhere).

Related issues: Automattic/wp-super-cache#586, Automattic/wp-super-cache#569, Automattic/wp-super-cache#498, Automattic/wp-super-cache#440, Automattic/wp-super-cache#431, Automattic/wp-super-cache#383, Automattic/wp-super-cache#243, Automattic/wp-super-cache#7.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names WP-CLI behavior, advanced-cache.php, and $_SERVER variables as starting points; reproduce each difference by comparing a WP-CLI command with a web request, then review the linked WP-CLI and wp-super-cache issues. Done means the three compatibility gaps have agreed fixes and their behavior is verified in both execution contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.