Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • F FIORest
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • FNAR Industries
  • FIO
  • FIORest
  • Merge requests
  • !11

Implement auth & permission caching

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Kovus requested to merge feature/auth-memcache into develop Mar 15, 2021
  • Overview 2
  • Commits 2
  • Changes 2

Any functionality which requires authentication (for which there are a lot) requires looking up the user upon execution of the endpoint. This is something which happens a LOT; so it makes sense to cache this data for a period of time (currently defined as 2 hours).

Permissions lookups are also used for a lot of queries; and are also pretty database-intensive. So this change caches those lookups as well. Since we want permission results to take effect upon changing them, we'll remove the cache entry whenever a change is made.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/auth-memcache