add page cache pdf files

This commit is contained in:
Andrey Kuvshinov
2020-04-23 17:46:08 +03:00
parent f5cf33b6e6
commit 9bcbed8928
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
}
$namefile = $hash.'.pdf';
$cachefile = PDFDIR.$namefile;
$cachefile = PDFDIR.$hash.'-'.$page.'.pdf';
if (file_exists($cachefile)){
$pdfile = '/'.$namefile;