PHPackages                             stuartcusackie/statamic-cache-requester - 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. stuartcusackie/statamic-cache-requester

ActiveLibrary[Caching](/categories/caching)

stuartcusackie/statamic-cache-requester
=======================================

Artisan commands that queue up entry and glide urls for retrieval, which engages the caches and makes first time loads much quicker.

1.3.2(3mo ago)3501[1 issues](https://github.com/stuartcusackie/statamic-cache-requester/issues)MITPHPPHP ^8.0

Since Aug 5Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/stuartcusackie/statamic-cache-requester)[ Packagist](https://packagist.org/packages/stuartcusackie/statamic-cache-requester)[ RSS](/packages/stuartcusackie-statamic-cache-requester/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (9)Versions (38)Used By (0)

Statamic Cache Requester
========================

[](#statamic-cache-requester)

Artisan commands that queue up entry and glide urls for retrieval, which engages the caches and makes first time loads much quicker. Note that this package provides no benefict to Statamic applications that save cached images, i.e. cache =&gt; true.

This package can do a few things:

1. Queue up all entry urls for retrieval which automatically engages the static cache, making first time loads quicker. UPDATE: Statamic actually has a built in function for this which should be preferable - `static:warm`
2. Search for all image and picture sources within your entries and queue them up for a separate retrieval to initiate Glide generation. This means that all images and responsive variants will be pre-generated for your first visitor. This is particularly useful when you have lots of responsive image variants or if you are using Spatie's Statamic Responsive Images package. It can help to avoid server crashes for image heavy websites where Glide has a lot of processing to perform.
3. Listens for EntrySaved events and automatically queues the entry's url for image requests.

**CAUTION:** Glide image manipulation can take a lot of work, especially when using responsive image variants and jpeg fallbacks. For example, a site using Spatie's responsive images addon could have 10 sizes and 2 formats per image. If this site has 1000 images then 20,000 variants will need to be manipulated by Glide. Keep an eye on your CPU usage, especially if using a hosting server that limits CPU (e.g. AWS-EC2).

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

[](#installation)

This package relies on an release candidate version of simplehtmldom, which will be rejected by the latest Laravel versions that require min-stability of dev.

You can run both of these commands to install this package:

```
composer require simplehtmldom/simplehtmldom:"^2.0@RC"
composer require stuartcusackie/statamic-cache-requester

```

```
php please vendor:publish --tag=statamic-cache-requester-config

```

Check the config file for special features such as queue configuration and lightbox image request generation.

Commands
--------

[](#commands)

```
php artisan requester:entries

```

If you are using Static caching then **it's a good idea to add this command to your deploy script (e.g. Forge).** Deployments clear the static cache so this will rebuild it for all entries afterwards. UPDATE: Statamic actually has a built in function for this which should be preferable - `static:warm`

```
php artisan requester:images

```

You will usually only run this command once on initial deployment of the site, or after any major restructuring of asset filenames and folders. I do **not** recommend adding this to your deployment script as images rarely change.

```
php artisan requester:clear

```

Clears the configured queue. Be careful if using the default queue or a shared queue as all jobs will be removed.

Queues
------

[](#queues)

This package utilises a 'cacherequester' queue on the default connection. You can update the queue connection and name using the STATAMIC\_CACHE\_REQUESTER\_QUEUE\_CONNECTION and STATAMIC\_CACHE\_REQUESTER\_QUEUE\_NAME env variables.

Todo
----

[](#todo)

- Add terms to entry requests
- Add multisite functionality
- Experiment with EntryCreated events to process images
- Remove

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance73

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~143 days

Total

37

Last Release

109d ago

Major Versions

0.5.0 → 1.02022-11-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20210934?v=4)[Stuart Cusack](/maintainers/stuartcusackie)[@stuartcusackie](https://github.com/stuartcusackie)

---

Top Contributors

[![stuartcusackie](https://avatars.githubusercontent.com/u/20210934?v=4)](https://github.com/stuartcusackie "stuartcusackie (94 commits)")

### Embed Badge

![Health badge](/badges/stuartcusackie-statamic-cache-requester/health.svg)

```
[![Health](https://phpackages.com/badges/stuartcusackie-statamic-cache-requester/health.svg)](https://phpackages.com/packages/stuartcusackie-statamic-cache-requester)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[statamic/statamic

Statamic

832182.1k](/packages/statamic-statamic)[thoughtco/statamic-cache-tracker

1941.0k](/packages/thoughtco-statamic-cache-tracker)[aerni/advanced-seo

Comprehensive SEO addon for Statamic with flexibility in mind

1818.9k](/packages/aerni-advanced-seo)

PHPackages © 2026

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