Skip to content

hisnameisjimmy/Craft-CacheWarmer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 57.1%
  • HTML 42.9%