WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#22683 closed defect (bug) (maybelater)

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

Reported by: scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Cache API Keywords: has-patch close
Focuses: 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 years ago.

Download all attachments as: .zip

Change History (5)

@scribu
7 years ago

#1 @scribu
7 years ago

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

#2 @devesine
7 years ago

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

#3 @wonderboymusic
6 years ago

  • Keywords close added
  • Milestone changed from Awaiting Review to 3.9

#4 @wonderboymusic
6 years ago

  • Milestone 3.9 deleted
  • Resolution set to maybelater
  • Status changed from new to closed

This has since been worked around in WP-CLI. Someone will prompt us to reopen if necessary.

Note: See TracTickets for help on using tickets.