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.1.3(2mo ago)295MITPHPPHP ^8.1

Since Feb 20Pushed 1w 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 3w ago

READMEChangelogDependencies (2)Versions (6)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

Maintenance93

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~288 days

Total

5

Last Release

68d 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.5k567.4k434](/packages/getkirby-cms)[getkirby/staticache

Static site performance on demand

10017.2k](/packages/getkirby-staticache)[medienbaecker/kirby-modules

Easily add modules to your pages

895.4k1](/packages/medienbaecker-kirby-modules)[johannschopplich/kirby-content-translator

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

2010.1k](/packages/johannschopplich-kirby-content-translator)[schnti/cachebuster

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

108.5k1](/packages/schnti-cachebuster)[fabianmichael/kirby-template-attributes

Better HTML attribute handling for your snippets and templates.

237.6k1](/packages/fabianmichael-kirby-template-attributes)

PHPackages © 2026

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