Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoPino committed Aug 5, 2024
1 parent c2c7199 commit b7ec5bf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Controller/MetadataExposeDisplayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ public function castViaTwig(
)) {
if ($metadatadisplay_entity = $metadataexposeconfig_entity->getMetadataDisplayEntity(
)) {

try {
$responsetypefield = $metadatadisplay_entity->get('mimetype');
$responsetype = $responsetypefield->first()->getValue();
Expand Down Expand Up @@ -327,7 +326,6 @@ function () use ($context, $original_context, $metadatadisplay_entity) {
$response->getCacheableMetadata()->addCacheContexts(['user.roles']);
$response->getCacheableMetadata()->addCacheContexts($embargo_context);
if (isset($embargo_info[3]) && $embargo_info[3] === FALSE) {
error_log('uncache-able');
$response->getCacheableMetadata()->setCacheMaxAge(0);
}
}
Expand Down

0 comments on commit b7ec5bf

Please sign in to comment.