WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#22683 new defect (bug)

Don't load advanced-cache.php when running via CLI

Reported by: scribu Owned by:
Priority: normal Milestone: Awaiting Review
Component: Cache Version:
Severity: normal Keywords: has-patch
Cc:

Description

When you're loading WP via a command-line program, it doesn't make much sense for a plugin like WP Super Cache to take over. It's not like you have thousands of CLI users hammering the install.

Example issue in wp-cli: https://github.com/wp-cli/wp-cli/issues/164

Attachments (1)

22683.diff (474 bytes) - added by scribu 7 months ago.

Download all attachments as: .zip

Change History (3)

scribu7 months ago

comment:1 scribu7 months ago

  • Component changed from General to Cache
  • Keywords has-patch added

comment:2 devesine7 months ago

Works fine for me, and looks like the rightest way to detect the CLI.

Note: See TracTickets for help on using tickets.