Browse Source

Coding standards.

pull/393/head
Adam Vessey 11 years ago
parent
commit
64c90936d9
  1. 6
      includes/datastream.inc

6
includes/datastream.inc

@ -72,7 +72,8 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F
drupal_page_is_cacheable(FALSE);
// Try not to load the file into PHP memory!
// Close and flush ALL the output buffers!
while(@ob_end_flush()) {};
while (@ob_end_flush()) {
};
// New content needed.
if ($cache_check === 200) {
@ -99,7 +100,7 @@ function islandora_parse_http_match_headers($header_value) {
/**
* Validate cache headers.
*
* @param AbstractDatastream $datastrea
* @param AbstractDatastream $datastream
*
* @return int
* An integer representing the HTTP response code. One of:
@ -174,6 +175,7 @@ function islandora_view_datastream_cache_check(AbstractDatastream $datastream) {
* The datastream being viewed/downloaded.
*/
function islandora_view_datastream_set_cache_headers(AbstractDatastream $datastream) {
// Force cache revalidation.
header('Expires: Sun, 19 Nov 1978 05:00:00 GMT');
$cache_control = array();
if ($datastream->parent->repository->api->connection->username == 'anonymous') {

Loading…
Cancel
Save