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

If HTTP_HOST is not defined then disable caching. #191

Merged
merged 1 commit into from Feb 8, 2017

Conversation

Projects
None yet
1 participant
@donnchawp
Copy link
Contributor

donnchawp commented Feb 8, 2017

The HTTP_HOST is part of the cache key so it doesn't make sense to cache
the request. Also avoids a PHP notice.
https://wordpress.org/support/topic/php-notice-undefined-index-http_host-from-wp-cli/

If HTTP_HOST is not defined then disable caching.
The HTTP_HOST is part of the cache key so it doesn't make sense to cache
the request. Also avoids a PHP notice.
https://wordpress.org/support/topic/php-notice-undefined-index-http_host-from-wp-cli/

@donnchawp donnchawp self-assigned this Feb 8, 2017

@donnchawp donnchawp merged commit c9daa2c into master Feb 8, 2017

@donnchawp donnchawp deleted the http_host_fix branch Feb 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment