The Blog

Statamic

That Escalated Quickly: All the New Things

John Koster
John Koster
December 10, 2023

The past six months or so have been incredibly busy. What started as a new article series about customizing Statamic's search escalated quickly.

Statamic

Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

John Koster
John Koster
November 30, 2023

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collection entries within the Statamic Control Panel.

Statamic

Creating Simple HTTP Redirect Routes from a Statamic Site

John Koster
John Koster
November 29, 2023

Generating a custom Laravel routes file from a Statamic website to redirect to a new domain.

JavaScript

Disabling Vite File Hashes

John Koster
John Koster
November 27, 2023

Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js

Laravel

Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

John Koster
John Koster
September 4, 2023

Learn how to implement a custom component compiler for Laravel's Blade templating language in this post. We will build a custom compiler that transforms custom component syntax into a Livewire component, leveraging new features provided by Volt. Follow along as we set up the Blade precompiler and parse custom Blade component syntax. Get started by grabbing the example code on GitHub, and don't forget to install the necessary dependencies.

Statamic

Creating a Hybrid Cache System for Statamic: Part Five

John Koster
John Koster
September 3, 2023

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

Statamic

Creating a Hybrid Cache System for Statamic: Part Four

John Koster
John Koster
September 3, 2023

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.

Statamic

Creating a Hybrid Cache System for Statamic: Part Six

John Koster
John Koster
September 3, 2023

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.

Statamic

Creating a Hybrid Cache System for Statamic: Part Three

John Koster
John Koster
September 3, 2023

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

Statamic

Creating a Hybrid Cache System for Statamic: Part Two

John Koster
John Koster
September 3, 2023

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

Latest posts

That Escalated Quickly: All the New Things

The past six months or so have been incredibly busy. What started as a new article series about cust...

Read more
Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collect...

Read more
Creating Simple HTTP Redirect Routes from a Statamic Site

Generating a custom Laravel routes file from a Statamic website to redirect to a new domain.

Read more
Disabling Vite File Hashes

Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js

Read more
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

Learn how to implement a custom component compiler for Laravel's Blade templating language in this p...

Read more
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 mu...

Read more