khromov/mustache-wordpress-cache

WordPress cache adapter for Mustache.php

Maintainers

Package info

github.com/khromov/mustache-wordpress-cache

pkg:composer/khromov/mustache-wordpress-cache

Statistics

Installs: 8 595

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

1.3 2015-01-09 16:49 UTC

This package is not auto-updated.

Last update: 2026-02-28 22:56:50 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")