Cache: item cache now has an autodelete of old files. The pages plugin now sets a link via redirection. So posting works.

This commit is contained in:
Michael Vogel 2012-03-11 19:11:25 +01:00
parent b879a1ddf1
commit 9f76d96d46
3 changed files with 17 additions and 3 deletions

View file

@ -879,7 +879,7 @@ function prepare_body($item,$attach = false) {
$cache = get_config('system','itemcache');
if (($cache != '')) {
$cachefile = $cache."/".$item["guid"]."-".strtotime($item["edited"])."-".$attach."-".hash("crc32", $item['body']);
$cachefile = $cache."/".$item["guid"]."-".strtotime($item["edited"])."-".hash("crc32", $item['body']);
if (file_exists($cachefile))
$s = file_get_contents($cachefile);