Skip to content

Use django caching to improve TTFB #487

@NathanBeddoeWebDev

Description

@NathanBeddoeWebDev

Description

To improve Core Web Vitals, we can cache pages that aren't regularly updated using Django's caching. In Memory caching is available so you don't have to run up a redis server or anything.
https://docs.djangoproject.com/en/4.0/topics/cache/#local-memory-caching-1

Requirements

Set up caching config as per the docs above.
Make a decision on what views can be cached, and which pages shouldn't be.
How long should it cache in memory for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions