diff --git a/CHANGELOG.md b/CHANGELOG.md index a8252b2e..88ce7998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # SOE Profile +11.0.7 +------------------------------------------------------------------------------- +- Invalidate cache tag when saving site contact details +- Allow figure and figcaption in embeddables + 11.0.6 ------------------------------------------------------------------------------- - Fixed event day display with timezones. diff --git a/config/sync/core.entity_view_display.media.embeddable.default.yml b/config/sync/core.entity_view_display.media.embeddable.default.yml index 989b6841..6cebc52a 100644 --- a/config/sync/core.entity_view_display.media.embeddable.default.yml +++ b/config/sync/core.entity_view_display.media.embeddable.default.yml @@ -19,7 +19,7 @@ content: settings: max_width: 0 max_height: 0 - allowed_tags: 'a aside audio b blockquote br button caption cite code dd dl div drupal-media dt em embed form h1 h2 h3 h4 h5 hr i iframe img input label li object ol option p param pre s script select source span strong sub sup table tbody textarea td tfoot th thead tr ul video' + allowed_tags: 'a aside audio b blockquote br button caption cite code dd dl div drupal-media dt em embed form h1 h2 h3 h4 h5 hr i iframe img input label li object ol option p param pre s script select source span strong sub sup table tbody textarea td tfoot th thead tr ul video figure figcaption' third_party_settings: { } weight: 1 region: content diff --git a/soe_profile.info.yml b/soe_profile.info.yml index 77929ba1..61a70d68 100644 --- a/soe_profile.info.yml +++ b/soe_profile.info.yml @@ -1,6 +1,6 @@ name: 'SOE Profile' description: 'Jumpstart Website Profile' -version: 11.0.6 +version: 11.0.7 type: profile project: Stanford core_version_requirement: ^9 || ^10 diff --git a/src/EventSubscriber/EventSubscriber.php b/src/EventSubscriber/EventSubscriber.php index ff4034d8..c710b15c 100644 --- a/src/EventSubscriber/EventSubscriber.php +++ b/src/EventSubscriber/EventSubscriber.php @@ -3,6 +3,7 @@ namespace Drupal\soe_profile\EventSubscriber; use Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector; +use Drupal\Core\Cache\Cache; use Drupal\Core\File\FileSystemInterface; use Drupal\Core\Installer\InstallerKernel; use Drupal\Core\Logger\LoggerChannelFactoryInterface; @@ -104,6 +105,7 @@ public function onEntityPreSave(EntityPresaveEvent $event) { ) { $renewal_date = time() + (InstallerKernel::installationAttempted() ? 0 : 60 * 60 * 24 * 365); $entity->set('su_site_renewal_due', date(DateTimeItemInterface::DATETIME_STORAGE_FORMAT, $renewal_date)); + Cache::invalidateTags(['site-renew-date']); } } @@ -159,7 +161,7 @@ protected static function redirectUser() { // If the renewal date has passed, they should be redirected. $needs_renewal = !getenv('CI') && $site_manager && (strtotime($renewal_date) - time() < 60 * 60 * 24); - $cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, time() + 60 * 60 * 24); + $cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, time() + 60 * 60 * 24, ['site-renew-date']); return $needs_renewal; }