Skip to content

About

[READ-ONLY] Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.. Issues and PRs at https://github.com/marko-php/marko

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/page-cache-entity

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

About

[READ-ONLY] Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.. Issues and PRs at https://github.com/marko-php/marko

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages