149
153
function start_cache($max_age, $params=""){
153
159
$path = get_path($params);
154
160
$lastmodified = @filemtime($path);
155
161
cache_check_diskspace(); //Check free disk space once in a while
158
$regenerate = cache_need_to_regenerate($path, $max_age); //Is the stored version too old, do we need to regenerate it?
160
168
// If cached version is too old (or non-existent)
161
169
// generate the page and write to cache