Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populates $WPSC_HTTP_HOST for WP-CLI commands #587

Merged
merged 1 commit into from Aug 16, 2018

Conversation

stodorovic
Copy link

  • Explicitly globalizes $WPSC_HTTP_HOST and $blogcacheid (WP-CLI needs it).
  • Uses get_option( 'home' ) to populate $WPSC_HTTP_HOST. It's possible because wp-cache.php loads wp-cache-base.php (WP-CLI doesn't load advanced-cache.php) when function get_option exists.

Fixes #586.

@donnchawp donnchawp merged commit 2f39283 into Automattic:master Aug 16, 2018
@stodorovic stodorovic deleted the wp-cli-cache-base-fixes branch August 16, 2018 09:55
stodorovic added a commit to stodorovic/wp-super-cache that referenced this pull request Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants