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

If you enter the root map ID as the guide ID when reseting the TOC (c… #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slucchini
Copy link
Contributor

…learing the cache), it will iterate through the children and clear all of their cached TOCs.

Example WP structure:

  • Home Page (ID=0)
    • Version 1 (ID=1)
      • User Guide (ID=2)
      • FAQ (ID=3)

If you perform a GET request to:
http://{wp-site-here}.com/?reset-toc=yes&guide-id=2
it will clear the cached TOC for the User Guide. (This was the previous behavior, and will still work.)

However, if you perform a GET request to:
http://{wp-site-here}.com/?reset-toc=yes&guide-id=1
it will clear the cached TOCs for both the User Guide and the FAQ.

…learing the cache), it will iterate through the children and clear all of their cached TOCs.
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.

1 participant