Browse Source

Fixed where I missed avoiding the page cache for datastreams.

pull/138/head
Adam Vessey 13 years ago
parent
commit
0b8ef2ecd9
  1. 5
      fedora_repository.module

5
fedora_repository.module

@ -948,7 +948,7 @@ function makeObject($pid, $dsID) {
drupal_set_message(t("No pid or dsid given to create an object with."));
return ' ';
}
global $user;
global $user, $conf;
if (!fedora_repository_access(OBJECTHELPER :: $OBJECT_HELPER_VIEW_FEDORA, $pid, $user)) {
drupal_access_denied();
return;
@ -956,6 +956,9 @@ function makeObject($pid, $dsID) {
return ' ';
}
//Disable the page cache, so entire datastreams do not get thrown into the page cache.
$conf['cache'] = CACHE_DISABLED;
module_load_include('inc', 'fedora_repository', 'ObjectHelper');
$objectHelper = new ObjectHelper();
$objectHelper->makeObject($pid, $dsID);

Loading…
Cancel
Save