khromov / mustache-wordpress-cache
WordPress cache adapter for Mustache.php
Installs: 8 582
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- mustache/mustache: ~2.0
This package is not auto-updated.
Last update: 2025-02-15 17:51:49 UTC
README
WordPress cache adapter for Mustache.php
Uses the WordPress Object cache.
Example
$mustache = new Mustache_Engine( array( ... 'cache' => \Khromov\Mustache_Cache\Mustache_Cache_WordPressCache() ... ) );
Constructor parameters
You don't have to pass anything when constructing the cache, but you can pass the following parameters if you want:
$key_prefix - The object cache key prefix to use. (Default: "")
$group - The object cache group to use. (Default: "mustache-cache")