]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
New cache system with subdirectories
[friendica.git] / include / text.php
index 044a1f8926984fc96950d8073fe71540b9f991a6..a326412411703947bc1c827c5853c0f4bf4a6c47 100644 (file)
@@ -962,13 +962,11 @@ if(! function_exists('prepare_body')) {
 function prepare_body($item,$attach = false) {
 
        $a = get_app();
-       call_hooks('prepare_body_init', $item); 
+       call_hooks('prepare_body_init', $item);
 
-       $cache = get_config('system','itemcache');
-
-       if (($cache != '')) {
-               $cachefile = $cache."/".$item["guid"]."-".strtotime($item["edited"])."-".hash("crc32", $item['body']);
+       $cachefile = get_cachefile($item["guid"]."-".strtotime($item["edited"])."-".hash("crc32", $item['body']));
 
+       if (($cachefile != '')) {
                if (file_exists($cachefile))
                        $s = file_get_contents($cachefile);
                else {