Browse Source

Flush the caches before we output so we don't overrun PHP memory limit.

pull/264/head
Jordan Dukart 12 years ago
parent
commit
d6d6155a61
  1. 1
      includes/datastream.inc

1
includes/datastream.inc

@ -43,6 +43,7 @@ function islandora_view_datastream(FedoraDatastream $datastream, $download = FAL
} }
drupal_page_is_cacheable(FALSE); drupal_page_is_cacheable(FALSE);
// Try not to load the file into PHP memory! // Try not to load the file into PHP memory!
ob_end_flush();
$datastream->getContent('php://output'); $datastream->getContent('php://output');
exit(); exit();
} }

Loading…
Cancel
Save