marko / page-cache-file
File-based page cache driver for Marko Framework
Package info
github.com/marko-php/marko-page-cache-file
Type:marko-module
pkg:composer/marko/page-cache-file
0.6.0
2026-05-12 13:37 UTC
Requires
- php: ^8.5
- marko/config: 0.6.0
- marko/core: 0.6.0
- marko/page-cache: 0.6.0
- marko/routing: 0.6.0
Requires (Dev)
- marko/testing: 0.6.0
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-05-12 17:50:32 UTC
README
File-based full-page cache driver --- stores cached HTTP responses on disk with tag-based invalidation and atomic writes.
Installation
composer require marko/page-cache marko/page-cache-file
Quick Example
use Marko\PageCache\Attributes\Cacheable; use Marko\Routing\Attributes\Get; use Marko\Routing\Http\Response; class ProductController { #[Get('/products/{id}')] #[Cacheable(ttl: 3600, tags: ['products', 'product-{id}'])] public function show(int $id): Response { return Response::ok($this->productRepository->find($id)); } }
Documentation
Full usage, API reference, and examples: marko/page-cache-file