Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Data API server Data API server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MoonCat​RescueMoonCat​Rescue
  • Data API serverData API server
  • Merge requests
  • !10

Use filesystem caching for generated images

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged MidnightLightning requested to merge 7-image-filesystem-cache into master Dec 08, 2022
  • Overview 0
  • Commits 13
  • Pipelines 0
  • Changes 4

Closes #7 (closed)

Creates an /img-cache folder in the application's root, which it then stores JSON blobs of the image data (including the base64-encoded image and its dimensions). This leads to a significant overall speed boost in returning images that have already been generated.

In order to tell if the incoming request has a cached result that would work, this change also needed to put in more robust request-sanitizing logic, such that if a new request comes in, and the only difference to a previous request is the ordering of the parameters, or additional junk parameters have been added, the system can recognize the already-cached result can be used.

Edited Jan 03, 2023 by MidnightLightning
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 7-image-filesystem-cache