PHPackages                             jan-herman/kirby-siteground-cache - 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. jan-herman/kirby-siteground-cache

ActiveKirby-plugin[Caching](/categories/caching)

jan-herman/kirby-siteground-cache
=================================

Kirby cache driver for SiteGround web hosting.

1.2.0(1mo ago)2146MITPHPPHP ^8.1

Since Feb 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jan-herman/kirby-siteground-cache)[ Packagist](https://packagist.org/packages/jan-herman/kirby-siteground-cache)[ Docs](https://github.com/jan-herman/kirby-siteground-cache)[ RSS](/packages/jan-herman-kirby-siteground-cache/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Kirby SiteGround Cache
======================

[](#kirby-siteground-cache)

Kirby cache driver for purging SiteGround Dynamic Cache and controlling SiteGround cache headers from Kirby's pages cache configuration.

Installation
------------

[](#installation)

Install the plugin and enable it as the pages cache driver:

```
return [
    'cache' => [
        'pages' => [
            'active' => true,
            'type'   => 'siteground',
        ]
    ]
];
```

Options
-------

[](#options)

### maxAge

[](#maxage)

Set `maxAge` to send a `Cache-Control: max-age=` header for rendered HTML pages. SiteGround uses this header to control how long the page should be kept in the Dynamic Cache.

```
return [
    'cache' => [
        'pages' => [
            'active' => true,
            'type'   => 'siteground',
            'maxAge' => 6000,
        ]
    ]
];
```

If `maxAge` is not configured, the plugin does not send a cache lifetime header and SiteGround's default cache duration applies.

### ignore

[](#ignore)

Use Kirby's native pages cache `ignore` option to exclude pages from SiteGround Dynamic Cache. Ignored pages send `Cache-Control: no-cache`.

```
return [
    'cache' => [
        'pages' => [
            'active' => true,
            'type'   => 'siteground',
            'maxAge' => 6000,
            'ignore' => fn ($page) => $page->template()->name() === 'contact',
        ]
    ]
];
```

You can also ignore pages by ID:

```
return [
    'cache' => [
        'pages' => [
            'active' => true,
            'type'   => 'siteground',
            'ignore' => ['contact', 'private-area'],
        ]
    ]
];
```

Purging
-------

[](#purging)

Logged-in users can visit `/flush-cache` to purge Kirby's pages cache, which also purges SiteGround Dynamic Cache.

You can also purge the cache with the Kirby CLI:

```
vendor/bin/kirby clear:cache
```

Any code or command that calls `kirby()->cache('pages')->flush()` will trigger the SiteGround purge as well.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~242 days

Recently: every ~169 days

Total

6

Last Release

55d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12972544?v=4)[Jan Herman](/maintainers/jan-herman)[@jan-herman](https://github.com/jan-herman)

---

Top Contributors

[![jan-herman](https://avatars.githubusercontent.com/u/12972544?v=4)](https://github.com/jan-herman "jan-herman (7 commits)")

### Embed Badge

![Health badge](/badges/jan-herman-kirby-siteground-cache/health.svg)

```
[![Health](https://phpackages.com/badges/jan-herman-kirby-siteground-cache/health.svg)](https://phpackages.com/packages/jan-herman-kirby-siteground-cache)
```

###  Alternatives

[getkirby/cms

The Kirby core

1.5k606.6k535](/packages/getkirby-cms)[medienbaecker/kirby-modules

Easily add modules to your pages

895.6k1](/packages/medienbaecker-kirby-modules)[getkirby/staticache

Static site performance on demand

10018.7k](/packages/getkirby-staticache)[johannschopplich/kirby-content-translator

DeepL &amp; AI-powered content translation for Kirby CMS

2011.4k](/packages/johannschopplich-kirby-content-translator)[medienbaecker/kirby-alter

262.5k](/packages/medienbaecker-kirby-alter)[schnti/cachebuster

A plugin for Kirby 3 CMS to add modification timestamps to css and js files

108.6k1](/packages/schnti-cachebuster)

PHPackages © 2026

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