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

Context menu cache #1000

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Context menu cache #1000

wants to merge 3 commits into from

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Mar 16, 2022

Summary

We only used a specific cache on the context menu to ensure changes to
plugins would invalidate the nested cache item and update the menu. This
failed us in a couple of ways because the menu contains multiple items:

  • Plugins based on instance
  • Links to Send To items based on project
  • Access to the links based on user permissions

This means the cache would become so user specific it defeats it's own
purpose. Instead, we can simply move the wider "page content" cache down
the tree and skip caching the context menu.

I assign all rights, including copyright, to any future Dradis
work by myself to Security Roots.

Check List

  • Added a CHANGELOG entry

We only used a specific cache on the context menu to ensure changes to
plugins would invalidate the nested cache item and update the menu. This
failed us in a couple of ways because the menu contains multilpe items:
 - Plugins based on instance
 - Links to Send To items based on project
 - Access to the links based on user permissions

This means the cache would become so user specific it defeats it's own
purpose. Instead, we can simply move the wider "page content" cache down
the tree and skip caching the context menu.
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