marko/page-cache-entity

Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.

Maintainers

Package info

github.com/marko-php/marko-page-cache-entity

Type:marko-module

pkg:composer/marko/page-cache-entity

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.6.0 2026-05-12 13:37 UTC

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