Skip to content

An example custom cache implementation for Statamic, providing near static-HTML response times while preserving text editor based workflows.

License

Notifications You must be signed in to change notification settings

Stillat/hybrid-cache-system-for-statamic

Repository files navigation

Hybrid Cache for Statamic Example Repository

This repository contains the source code developed in a series of blog posts:

Creating a Hybrid Cache System for Statamic

Part 1 of 6 covers experimenting with various cache systems, techniques, and organization of our custom cache system

Creating a Hybrid Cache System for Statamic: Part Two

Part 2 of 6 covers invalidating cached responses when template changes are detected and detecting request content dependencies, such as entries, taxonomies, and assets.

Creating a Hybrid Cache System for Statamic: Part Three

Part 3 of 6 covers managing response headers, configuring the custom cache system, and implementing mechanisms to bypass the cache entirely.

Creating a Hybrid Cache System for Statamic: Part Four

Part 4 of 6 covers implementing new features to set arbitrary expiration times from within a template and mechanisms to invalidate all cached responses at once.

Creating a Hybrid Cache System for Statamic: Part Five

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target multiple cache entries simultaneously for invalidation.

Creating a Hybrid Cache System for Statamic: Part Six

Part 6 of 6 covers implementing custom Artisan commands to retrieve information about our cache, invalidating responses returned from Laravel routes and controllers, excluding pages with CSRF tokens, and examples of how to integrate with third-party systems like Torchlight.

License

The hybrid cache code sample is free software released under the MIT License.

About

An example custom cache implementation for Statamic, providing near static-HTML response times while preserving text editor based workflows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published