Email the Author
You can use this page to email Johnathon Koster about Building a Hybrid Cache System for Statamic.
About the Book
Want to read this guide online? Feel free to check out this guide on my blog https://stillat.com/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic
Source Code: The source code is freely available, released under the MIT license. You can grab it on GitHub at https://github.com/Stillat/hybrid-cache-system-for-statamic
This step-by-step guide covers implementing a custom cache system for Statamic, which provides near-static cache response times while preserving some of the text-editor workflows that make Statamic great. Learn about some interesting Statamic internals and fantastic Laravel features along the way!
Topics covered throughout this guide include:
- Working with Statamic's Stache repositories to query entries, assets, and taxonomy terms
- Overriding Statamic's data classes to add custom features and behaviors
- Custom service providers, Artisan commands, and facades
- Tracking request content dependencies, including assets and global variables
- Leveraging Laravel view composers to track request template dependencies
- Utilizing Laravel's service container to interact with different classes throughout the application lifecycle
- Developing custom Antlers tags
- Unencrypted Laravel cookies and automatic cache bypass
About the Author
Hello, internet!
My name is John, and I have over fifteen years of professional software development. I've worked on a wide range of projects over the years, from simple websites and critical government reporting applications all the way to high-performance telematics solutions.
During my downtime, I enjoy working on open-source projects, writing posts on my blog, and contributing to the Laravel and Statamic ecosystems.
Some of the recent open-source projects I've worked on include:
- blade-parser-typescript - a Laravel Blade parser, formatter, reflection library, and linter, written in TypeScript
- Antlers Toolbox - a Visual Studio Code extension providing syntax highlighting, code auto-complete, intelligent refactoring, and project-aware assistance for Statamic developers
- Antlers Runtime - an advanced PHP templating engine for the Statamic CMS platform
- Proteus - a Laravel package that makes it simple to read, write, and modify Laravel configuration files from your application code
- Primitives - a PHP library that safely parses input strings into native PHP types (string, bool, arrays, etc.) and can optionally be configured with a sandbox for method evaluation