[ For internal contributors only ]
To set up the repo locally, choose one of the following methods:
- Create a WordPress website.
- Clone the nginx source code in a separate directory.
- Set up nginx using either FastCGI cache or Srcache module.
- Manually compile the binary for Nginx.
- Add a configuration block to redirect incoming requests to the WordPress website.
- Clone this repository inside the
wp-content/plugins
directory.
-
Install EasyEngine by following the instructions.
-
Create a site with caching enabled using the command:
ee site create <site_name> --cache
-
Clone this repository inside the
wp-content/plugins
directory of the newly created site.
To verify if a page is cached:
- Enable the timestamp option in Nginx Helper from the WordPress Admin Page:
- This adds a comment with cache time and query count.
- Cached pages should show only 1 query.
- Manually check the Redis database:
- Search for keys beginning with the prefix specified in your Redis config, followed by a URL.
- Create a new branch from
master
for your changes. - Make your changes and commit them to your branch.
- Raise a PR targeting the
develop
branch. - Assign the PR to a reviewer.
- Address any feedback and make necessary changes.
- Once approved, merge the PR into the
develop
branch.
- After thorough testing on the
develop
branch, create a new PR. - Set the source branch as the original feature branch that was merged into
develop
. - Set the target branch as
master
. - Assign reviewers and await final approval.
- Once approved, merge the PR into the
master
branch.