Skip to content

khromov/mustache-wordpress-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

WordPress Cache for Mustache.php

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")