Skip to content

Don't check for Google Cloud Storage connectivity in stateless mode unless uploading #442

@ckeeney

Description

@ckeeney

I use wp-stateless in stateless mode. Occasionally, the photo sources on my site are all pointing at my own domain name instead of GCS for about a minute or two. I'm not sure what causes this temporary failure, but I noticed this check for GCS connectivity in the plugin initialization.

In stateless mode, I don't think I care about any GCS connectivity except when uploading media from the wp-admin. GCS is the only place my images exist, so my own domain name is not a reasonable failover. This should also save on some overhead of unnecessary connections.

https://github.com/wpCloud/wp-stateless/blob/a93638abe0d2ae5013e0c7f6f7155e8e101c0c33/lib/classes/class-bootstrap.php#L151-L159

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions