parent
8f04f74800
commit
16cd4d52c5
|
@ -212,8 +212,12 @@ my $enable_experimental_features = $ENV{'ENABLE_EXPERIMENTAL_FEATURES' } || 0;
|
||||||
if (!serve_static($server, $cgi, $webroot)) {
|
if (!serve_static($server, $cgi, $webroot)) {
|
||||||
$cached = 0;
|
$cached = 0;
|
||||||
}
|
}
|
||||||
|
# only save to cache on GET requests
|
||||||
|
# https://code.sitosis.com/rudism/dotplan-online/issues/1
|
||||||
|
if ($cgi->request_method() eq 'GET') {
|
||||||
$_staticcache->set($path, $cached);
|
$_staticcache->set($path, $cached);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
print $cached if $cached;
|
print $cached if $cached;
|
||||||
return $cached;
|
return $cached;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue