From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/registrar/config/seo/Schema.php | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/inc/registrar/config/seo/Schema.php b/inc/registrar/config/seo/Schema.php
index c87147d..e12796f 100644
--- a/inc/registrar/config/seo/Schema.php
+++ b/inc/registrar/config/seo/Schema.php
@@ -158,9 +158,7 @@
public function outputContentTaxArchiveSchema():array
{
$ID = get_the_ID();
- if (JVB_TESTING) {
- $this->cache->flush();
- }
+
return $this->cache->remember(
$ID,
function() use ($ID) {
@@ -264,13 +262,7 @@
$itemList->setItemListElement($itemListItems);
$class->setMainEntity($itemList);
- $schema = $class->outputSchema();
-
- if (JVB_TESTING) {
-// error_log('Generated archive schema: '.print_r($schema, true));
- }
-
- return $schema;
+ return $class->outputSchema();
}
);
}
--
Gitblit v1.10.0