Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

sjelfull/Craft-CacheWarmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Cache Warmer plugin for Craft

Allows you to fire off one request to warm up your cache for selected sections or commerce product types.

Usage

After clearing your cache, fire off a request to yoururl.com/actions/cacheWarmer/fire?key=yourkey.

The plugin uses Guzzle to fire off a batch of x requests to the urls of entries fetched from sections specified in the plugin settings.

Future plans

  • Add locale support (currently hardcoded to en)
  • Incorporate Cache Clear (need to check with Jason first)
  • Support cache warming of single entries when they are updated
  • Support cache warming of specific cache key (You need to supply which url to call after clearing, though)
  • Make clearing more performant and robust

License

MIT

About

Warm up your cache with a single request.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published