Skip to content

Cache refactoring #135

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

Merged
merged 17 commits into from
Apr 2, 2025
Merged

Cache refactoring #135

merged 17 commits into from
Apr 2, 2025

Conversation

AleTorrisi
Copy link
Contributor

Proposed changes

This branch introduces a new organization of the code about Cache feature. The main goal is handle cache functions as single feature as already happens for LinkPrefect and JetPackBoost in example.
No new feature has been introduced, just a code refactoring.

New folder is available now: wp-module-performance/includes/Cache

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

Copy link
Member

@arunshenoy99 arunshenoy99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AleTorrisi Let's resolve the merge conflicts and double-check that all the features are working as expected. I noticed the tests caught something and are failing with a 500 Internal Server Error, let's look into that too. Thanks!

# Conflicts:
#	includes/Cache/CacheManager.php
#	includes/Performance.php
@AleTorrisi AleTorrisi added the In progress Developer is working on, stop with review label Mar 20, 2025
Fix: 404 error on Jetpack Boost preloading when Jetpack Boost is not active
@AleTorrisi AleTorrisi removed the In progress Developer is working on, stop with review label Mar 20, 2025
arunshenoy99
arunshenoy99 previously approved these changes Mar 25, 2025
Copy link
Member

@arunshenoy99 arunshenoy99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to go with:
newfold-labs/wp-module-onboarding-data#137
newfold-labs/wp-module-onboarding-data#140
newfold-labs/wp-module-hosting#19
newfold-labs/wp-plugin-bluehost#134

Other plugins:
newfold-labs/wp-plugin-hostgator#1014
newfold-labs/wp-plugin-crazy-domains#613
newfold-labs/wp-plugin-web#477
newfold-labs/wp-plugin-mojo#463

Thanks! @AleTorrisi, looks good to me! Much, much cleaner than the code before 😄.
Let’s resolve the merge conflict and get this thoroughly tested by QA, since it involves changes across multiple plugins and modules. We’ll want to make sure everything is working as expected before we merge it.

# Conflicts:
#	includes/Cache/Types/Cloudflare.php
arunshenoy99
arunshenoy99 previously approved these changes Mar 25, 2025
@arunshenoy99
Copy link
Member

I'll fix the lint in #156

@arunshenoy99 arunshenoy99 merged commit ba11304 into main Apr 2, 2025
1 of 7 checks passed
@arunshenoy99 arunshenoy99 deleted the cache-refactoring branch April 2, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants