Skip to content

Commit e5f6c2c

Browse files
authored
disable php time limit on pdf generation
When creating a large pdf from many pages it's easy to reach the default php execution time limit of 30 seconds. Hence it is disabled during pdf creation.
1 parent e83b5ec commit e5f6c2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public function convert(Doku_Event $event) {
7474

7575
// hard work only when no cache available
7676
if(!$this->getConf('usecache') || !$cache->useCache($depends)) {
77+
// generating the pdf may take a long time for larger wikis / namespaces with many pages
78+
set_time_limit(0);
79+
7780
$this->generatePDF($cache->cache, $title);
7881
}
7982

0 commit comments

Comments
 (0)