Skip to content

Conversation

@ryangjchandler
Copy link
Collaborator

This PR adds support for caching generated HTML using psr/simple-cache compatible objects.

You can enable caching by passing a CacheInterface object to the ->cache() method of the Phiki class which will enable caching for all generated HTML, or you can pass it to a one-off PendingHtmlOutput object.

The Laravel adapter also has caching enabled right out of the box and will default to your apps regular cache store (Cache::store()) which is already PSR-compatible.

@ryangjchandler ryangjchandler added the enhancement New feature or request label Aug 23, 2025
@ryangjchandler ryangjchandler merged commit 66a3f94 into 2.x Aug 23, 2025
5 checks passed
@ryangjchandler ryangjchandler deleted the caching branch August 23, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants