/wordpress-fragment-cache

A WordPress fragment cache snippet.

Primary LanguagePHPApache License 2.0Apache-2.0

WordPress Fragment Cache

Old and deprecated.

This snippet is used for caching fragments of PHP output in WordPress. As seen on CSS-Tricks.

Example

<?php fragment_cache('my_block_tag', DAY_IN_SECONDS, function() { ?>

[...]

<?php } ?>

License

Apache2