marko / page-cache-entity
Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.
Package info
github.com/marko-php/marko-page-cache-entity
Type:marko-module
pkg:composer/marko/page-cache-entity
0.6.0
2026-05-12 13:37 UTC
Requires
- php: ^8.5
- marko/core: 0.6.0
- marko/database: 0.6.0
- marko/page-cache: 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:20 UTC
README
Bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.
Installation
composer require marko/page-cache-entity
Quick Example
use Marko\Database\Entity\Entity; use Marko\PageCache\Contracts\IdentityInterface; class Product extends Entity implements IdentityInterface { public function getIdentities(): array { return ['products', "product-{$this->id}"]; } }
Saving or deleting the entity purges the listed cache tags automatically --- no extra wiring needed.
Documentation
Full usage, API reference, and examples: marko/page-cache-entity