Fragment Cache is caching plugin for WordPress. It was developed exclusively as Composer package.

classmap autoload type is used for classes, since files adhere to WordPress naming convention and need to be handled by static scan on install.

Pimple and TLC Transients libraries are required as Composer dependencies. Main plugin’s class extends Pimple and acts as dependency injection container for handler classes of different cache types. TLC Transients functionality is used for asynchronous cache updates.

Update Blocker plugin is suggested to prevent invalid update of Fragment Cache from official WordPress repository.

composer/installers package and wordpress-plugin type are declared for path customization when plugin is installed as part of whole site stack.


    "name"        : "rarst/fragment-cache",
    "description" : "WordPress plugin for partial and async caching of heavy front-end elements.",
    "keywords"    : ["wordpress", "cache", "performance"],
    "type"        : "wordpress-plugin",
    "homepage"    : "",
    "license"     : "GPL-2.0+",
    "authors"     : [
            "name"    : "Andrey Savchenko",
            "email"   : "",
            "homepage": ""
    "support"     : {
        "issues": ""
    "require"     : {
        "composer/installers"          : "~1.0",
        "markjaquith/wp-tlc-transients": "~1.0",
        "php"                          : ">=5.3",
        "pimple/pimple"                : "~2.0"
    "suggest": {
        "rarst/update-blocker": "Prevents invalid updates from official repositories"
    "autoload"    : {
        "classmap": ["php/"]

Documentation Links