Fix #339111: Disable caching for PDF files
authorJoao Ventura
Mon, 1 Dec 2008 15:17:13 +0000 (15:17 +0000)
committerJoao Ventura
Mon, 1 Dec 2008 15:17:13 +0000 (15:17 +0000)
print_pdf/print_pdf.module

index af92159..5de416e 100644 (file)
@@ -25,6 +25,13 @@ define('PRINT_PDF_FONT_FAMILY_DEFAULT', 'dejavusans');
 define('PRINT_PDF_FONT_SIZE_DEFAULT', 10);
 
 /**
+ * Implementation of hook_init().
+ */
+function print_pdf_init() {
+  $GLOBALS['conf']['cache'] = FALSE;
+}
+
+/**
  * Implementation of hook_theme().
  */
 function print_pdf_theme() {