PHPackages                             ttree/cloudflare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. ttree/cloudflare

ActiveNeos-package[Caching](/categories/caching)

ttree/cloudflare
================

Neos CMS add support for full page cache with Cloudflare (event the HTML page)

16PHP

Since Jul 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ttreeagency/Cloudflare)[ Packagist](https://packagist.org/packages/ttree/cloudflare)[ RSS](/packages/ttree-cloudflare/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cloudflare integration for Neos CMS
===================================

[](#cloudflare-integration-for-neos-cms)

This package for Neos CMS add support for full page cache with Cloudflare (event the HTML page)

This package is under development, any PR or review are welcome.

created by Dominique Feyer

Features
========

[](#features)

- Tag each request URI with the node that are used in the page rendering
- Generate the request cache on the first hit on the live workspace
- Clear the cache on node publication (for all URI where the current node is used)
- Command Line tools to do some basic thing with the Cloudflare API

Ready for production ?
======================

[](#ready-for-production-)

Currently this package is used in production on our `agency website `\_ agency website. But currently the API is not marked has stable and can change in the future. Commit message respect the Neos CMS commit message, and breaking change will be marked with "!!!" on the commit first line.

How to configure cloudflare to cache HTML page ?
================================================

[](#how-to-configure-cloudflare-to-cache-html-page-)

By default CF don't cache your HTML page, but only the assets like image, javascript, ...

You can change this default, by using the "Page Rules". Those page rules assume, that you use the ".html" suffix for your page, and that you use Neos. Those rules must be adapted to your own needs, some dynamic pages of your website needs maybe a different caching rules.

- domain.com/*@user-*.html (Cache level: Bypass cache)
- domain.com/neos/\* (Cache level: Bypass cache)
- domain.com/ (Cache level: Cache everything)
- domain.com/\*.html (Cache level: Cache everything)

Those rules, are juste here as an example.

How to use the plugin ?
=======================

[](#how-to-use-the-plugin-)

You need to install the package with composer and configure your settings::

```
Ttree:
  Cloudflare:
	default:
	  zone: 'need-to-be-configured'
	  apiKey: 'need-to-be-configured'
	  email: 'api@domain.com'
	'domain_com':
	  zone: 'domain.com'
	  apiKey: 'need-to-be-configured'
	  email: 'api@domain.com'

```

You can use multiple CF account if needed.

Warning: The key (domain\_com), must be the CF zone name with "." replaced by "\_".

How to generate the cache ?
===========================

[](#how-to-generate-the-cache-)

The cache is generated by a TypoScript2 object, you simply use it in your Site TS2::

```
include: resource://Ttree.Cloudflare/Private/TypoScripts/Library/NodeTypes.ts2

page = Page {
	[all your page configuration here]
	cache = Ttree.Cloudflare:Cache {
		@position = 'end'
		enable = TRUE
		zone = 'domain.com'
	}
}

```

With a proper configuration, you will be hanble to handle a lots of load without killing your server. Keep your CPU time to support your contributors.

Whish List
==========

[](#whish-list)

- Custom page expiration HTTP headers
- Better test coverage
- Some advanced configuration documentation
- Job Queue support to generate the page cache after purging the cache

Acknowledgments
---------------

[](#acknowledgments)

Development sponsored by [ttree ltd - neos solution provider](http://ttree.ch).

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.txt) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/145363?v=4)[ttree](/maintainers/ttree)[@ttree](https://github.com/ttree)

---

Top Contributors

[![dfeyer](https://avatars.githubusercontent.com/u/221173?v=4)](https://github.com/dfeyer "dfeyer (24 commits)")

### Embed Badge

![Health badge](/badges/ttree-cloudflare/health.svg)

```
[![Health](https://phpackages.com/badges/ttree-cloudflare/health.svg)](https://phpackages.com/packages/ttree-cloudflare)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
