Automattic / Automattic/jetpack

Docker: extend `wp shell` with `reload` command

Open
#9,074 1 comment 1 reaction 1 assignee Claimed by @oskosk View on GitHub
Docker Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

`reload` helper command should extend `wp shell` to reload WordPress context during the session.

In our Docker setup we can do: `yarn docker:wp shell` to use WP-CLI shell.

Because each `wp shell` session counts as a single request, it causes unexpected situations with WP cache.

It's possible to invalidate cache by entering `wp_cache_flush()` between requests you expect to get cached by WordPress.

Having a simple `reload` to reload the complete WordPress context would be great, though.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.