https://github.com/stillat/hybrid-cache-system-for-statamic
An example custom cache implementation for Statamic, providing near static-HTML response times while preserving text editor based workflows.
https://github.com/stillat/hybrid-cache-system-for-statamic
Last synced: 3 months ago
JSON representation
An example custom cache implementation for Statamic, providing near static-HTML response times while preserving text editor based workflows.
- Host: GitHub
- URL: https://github.com/stillat/hybrid-cache-system-for-statamic
- Owner: Stillat
- License: mit
- Created: 2023-09-03T20:54:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T00:01:21.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T21:39:15.578Z (4 months ago)
- Language: PHP
- Homepage: https://stillat.com/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic
- Size: 591 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license.md
Awesome Lists containing this project
README
# 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](https://stillat.com/blog/2023/09/03/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](https://stillat.com/blog/2023/09/03/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](https://stillat.com/blog/2023/09/03/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](https://stillat.com/blog/2023/09/03/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](https://stillat.com/blog/2023/09/03/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](https://stillat.com/blog/2023/09/03/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.