Skip to content

feat(SITE-5626): Add object cache and search status to site:info#2812

Open
scottbuscemi wants to merge 4 commits into4.xfrom
feat/SITE-5626-search-status
Open

feat(SITE-5626): Add object cache and search status to site:info#2812
scottbuscemi wants to merge 4 commits into4.xfrom
feat/SITE-5626-search-status

Conversation

@scottbuscemi
Copy link
Copy Markdown
Contributor

@scottbuscemi scottbuscemi commented Apr 2, 2026

Summary

  • Adds "Object Cache" and "Search" rows to site:info output
  • Object Cache shows true/false based on whether Redis/object caching is enabled
  • Search shows Elasticsearch, Solr, Elasticsearch, Solr, or Disabled
  • Reads from existing site settings (allow_cacheserver, allow_indexserver, allow_elasticsearch) — no additional API calls needed

Test plan

  • Verify terminus site:info <wordpress-site> shows Object Cache and Search rows
  • Verify terminus site:info <drupal-site> shows Object Cache and Search rows

Add search:status command that displays the status of search indexing
services for a site. WordPress sites show both Elasticsearch and Solr
status, while Drupal sites show only Solr.
@scottbuscemi scottbuscemi requested a review from a team as a code owner April 2, 2026 18:41
@pwtyler
Copy link
Copy Markdown
Member

pwtyler commented Apr 2, 2026

IMO this should be a field of site:info, not a new command.

Replace standalone search:status command with two new rows in
site:info output: "Object Cache" (true/false) and "Search"
(Elasticsearch, Solr, both, or Disabled).
@scottbuscemi scottbuscemi changed the title feat(SITE-5626): Add search:status command feat(SITE-5626): Add object cache and search status to site:info Apr 3, 2026
@scottbuscemi
Copy link
Copy Markdown
Contributor Author

@pwtyler Heads up — completely reworked this. Dropped the standalone search:status command and instead added two new rows to site:info: "Object Cache" (true/false) and "Search" (Elasticsearch/Solr/both/Disabled). Let me know what you think.

Also add changelog entry for 4.2.0-rc.2.
Comment thread src/Models/Site.php Outdated
Comment thread src/Commands/Site/InfoCommand.php Outdated
Comment thread tests/Functional/SiteCommandsTest.php Outdated
@scottbuscemi scottbuscemi requested a review from pwtyler April 16, 2026 17:19
@scottbuscemi
Copy link
Copy Markdown
Contributor Author

Updated the PR for suggestions

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants