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

Add WP CLI commands for Caching & Skip404 #97

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

arunshenoy99
Copy link
Member

@arunshenoy99 arunshenoy99 commented Feb 2, 2025

Proposed changes

This PR introduces WP-CLI commands for managing Caching and Skip404 settings, giving us more control over toggling features via the CLI. I also standardized some naming conventions, improved the code structure and fixed a few bugs.

Structure

wp nfd performance cache <command> <value>

Set Cache Level

wp nfd performance cache level <0|1|2|3>

Toggle Skip 404 Handling

wp nfd performance cache skip_404 <true|false>

Set Cache Exclusions

wp nfd performance cache exclude "<comma-separated-values>"

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Base automatically changed from enhance/link-prefetch-wp-cli-commands to release/v2.6.0 February 4, 2025 13:13
@arunshenoy99 arunshenoy99 merged commit 7e49805 into release/v2.6.0 Feb 4, 2025
3 checks passed
@arunshenoy99 arunshenoy99 deleted the enhance/caching-wp-cli-commands branch February 4, 2025 13:13
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