Skip to content

Instantly share code, notes, and snippets.

@georg90
georg90 / cache-warmup.php
Last active October 15, 2017 21:50
pre cache all image types and sizes for koken.me
<?php
// this is used so the script only runs once at a time!
require 'cronHelper/cron.helper.php'; // get it at http://abhinavsingh.com/how-to-use-locks-in-php-cron-jobs-to-avoid-cron-overlaps/
if(($pid = cronHelper::lock()) !== FALSE) {
/**
* Koken cache warmup script.
*
* @author Sylvain Deloux <github@eax.fr>
* @author Georg Peters <georg90@github>