mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
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:
parent
b879a1ddf1
commit
9f76d96d46
3 changed files with 17 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue