PHPackages                             wolfco/craft-cache-cow - 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. wolfco/craft-cache-cow

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

wolfco/craft-cache-cow
======================

Cache warming service for your Craft CMS application

2.1.0(1y ago)1891[2 issues](https://github.com/wolfcohub/craft-cache-cow/issues)[1 PRs](https://github.com/wolfcohub/craft-cache-cow/pulls)proprietaryPHPPHP &gt;=8.0

Since Sep 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wolfcohub/craft-cache-cow)[ Packagist](https://packagist.org/packages/wolfco/craft-cache-cow)[ Docs](https://www.wolfco.us)[ RSS](/packages/wolfco-craft-cache-cow/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (0)

Cache Cow
=========

[](#cache-cow)

This plugin adds a "Warm Cache" button under Utilities &gt; Cache Cow on your Craft CMS control panel. Click it to start the cache warming process on all selected sites. [![Screen shot of Warm Cache button.](warm-caches-ui.png)](warm-caches-ui.png)

Cache Cow will look for your sitemap at `{webroot}/sitemap.xml` by default, but you can set the path to your own sitemap in plugin settings. Or you can have the plugin read this value from an environment variable, depending on your needs. Multiple sites are supported. You can enter additional URLs for cache warming in plugin settings (Settings &gt; Plugins &gt; Cache Cow &gt; Settings). [![Screen shot of Cache Cow plugin settings page.](plugin-settings.png)](plugin-settings.png)

If no URLs are found for warming (i.e. no sitemap exists at the configured path and no additional URLs have been entered), "Warm Cache" button will be disabled and you'll see an error. [![Screen shot of Warm Cache button disabled with "no URLs" error.](no-urls-error.png)](no-urls-error.png)

You can also do cache warming via console command

```
/path/to/my/craft cache-cow/cache/warm
```

By default it fetches all URLs from all configured sitemaps and any additional URLs added in Settings. You can target one or a few site handles by passing them in as a comma-separated list

```
/path/to/my/craft cache-cow/cache/warm myCraftSite,myOtherCraftSite
```

Use handle `custom` to target additional URLs added in Settings.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later, and PHP 8.2 or later.

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

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Cache Cow”. Then press “Install”.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require wolfco/craft-cache-cow

# tell Craft to install the plugin
/path/to/my/craft plugin/install cache-cow
```

Run on a schedule using Cron Job (Linux/macOS)
----------------------------------------------

[](#run-on-a-schedule-using-cron-job-linuxmacos)

The Cache Cow plugin provides a command to warm the cache: ./craft cache-cow/cache/warm. You can set this command to run on a regular schedule using a cron job.

To run the cache warming command automatically on a regular schedule, follow these steps:

**Step 1: Open the Crontab Editor**

Open a terminal and edit the crontab for the user that runs your web server (usually `www-data` or a specific user on your server):

```
crontab -e
```

**Step 2: Add the Cron Job**

Add the following line to the crontab file to run the cache warming command. For example, to run the command every hour:

```
0 * * * * /path/to/my/craft cache-cow/cache/warm >/dev/null 2>&1
```

- Replace /path/to/your/craft/installation/ with the actual path to your Craft CMS project.
- The &gt;/dev/null 2&gt;&amp;1 ensures no output is logged unless there's an error.

**Example Cron Job for Daily Execution at Midnight**To run the cache warming daily at midnight, use this cron job:

```
0 0 * * * /path/to/my/craft cache-cow/cache/warm >/dev/null 2>&1
```

Note

Steps will vary in a Windows environment

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Total

11

Last Release

604d ago

Major Versions

v1.2.1 → v2.0.02024-09-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d2889fba7cf2f96788c9334c0c7215a8351083273dc6bfca809bd67f45798dc?d=identicon)[dwolfagist](/maintainers/dwolfagist)

---

Top Contributors

[![musicsnobj](https://avatars.githubusercontent.com/u/53445152?v=4)](https://github.com/musicsnobj "musicsnobj (22 commits)")

### Embed Badge

![Health badge](/badges/wolfco-craft-cache-cow/health.svg)

```
[![Health](https://phpackages.com/badges/wolfco-craft-cache-cow/health.svg)](https://phpackages.com/packages/wolfco-craft-cache-cow)
```

###  Alternatives

[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)[putyourlightson/craft-cloudflare

Purge Cloudflare caches from Craft.

2615.3k](/packages/putyourlightson-craft-cloudflare)[nystudio107/craft-fastcgicachebust

Bust the Nginx FastCGI Cache when entries are saved or created.

1953.5k3](/packages/nystudio107-craft-fastcgicachebust)

PHPackages © 2026

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