Kirby Staticache
Kirby Staticache Kirby Staticache

Staticache is a plugin for Kirby CMS. It gives you the performance of a static site generator for your regular Kirby CMS installations.

The Kirby Staticache Plugin enhances the performance of Kirby installations by providing static site generation capabilities.

Features:

  • Static Site Performance: It delivers the performance benefits of a static site generator without requiring complex setups or deployment steps.

  • Versatile Hosting: Kirby sites can run on various servers, including cheap shared hosting and VPS, while utilizing static cache for speed.

  • Custom Ignore Rules: Allows mixing static and dynamic content by configuring ignore rules, enabling specific pages to remain dynamic while others are statically cached.

  • Automatic Cache Flushing: The static cache is automatically cleared whenever content is updated in the Panel.

  • Cache Configuration: Staticache can be activated as a cache driver for pages. Ignore rules can be configured to keep specific pages dynamic.

  • Custom Cache Comment: Adds an HTML comment to cached HTML files, which can be customized or disabled.

  • Custom Root: The cache root can be overridden for custom web server setups. Disabling the root URL prefix is possible for single-domain sites.

  • Web Server Integration: Requires web server configuration (Apache, Caddy, nginx) to prioritize static cache files over dynamic PHP results. A PHP loader can be used if server configuration access is unavailable, though it is slower than direct web server integration.

  • Header Support: The plugin can be configured to store HTTP status codes and headers if the web server supports reading headers from static files.

  • Limitations: A statically cached page will prevent any Kirby logic from executing, so pages with logic in controllers, page models, templates, snippets, or plugins that result in different page responses depending on the request are not compatible with Staticache.