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 cache preloading functionality #360

Closed
wants to merge 6 commits into from

Conversation

pratik-londhe4
Copy link

Description

The aim of this PR is to allow addition of preloading the cache.

Type

  • New Feature

Reference Issue

Testing

The code has been tested locally and is working as expected.

To Test the functionality -

  1. Go to Nginx Helper page in the Settings.
  2. Now select the checkbox for Preload Cache and Save.
  3. Once the page reloads all the pages and posts ( which are available in sitemap.xml) will be cached.
  4. You can test any Page/Post to determine if it is cached or not.
  5. To determine if the Page is cached or not we can do the following -
    a. Check if the timestamp generated by nginx timestamp has the queries executed as 1.
    b. Manually check in Redis if there are keys starting with prefix set for nginx helper in admin page.
    c. The timestamp in the HTML changes during each refresh so it is not reliable to determine if the page is cached or not.

Vedant-Gandhi
Vedant-Gandhi previously approved these changes Oct 10, 2024
@Vedant-Gandhi
Copy link
Contributor

@pratik-londhe4 I am closing this PR since the sync PR between develop and master has already added these changes in master branch.
ref - #361

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