You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($seoKeywords) {
$keyWords = $seoKeywords->get('keywords');
$modx->setPlaceholder('seoPro.keywords', $keyWords);
}
Could it be updated to:
$keyWords = '';
if ($seoKeywords) {
$keyWords = $seoKeywords->get('keywords');
}
// Always set the placeholder even if it is empty$modx->setPlaceholder('seoPro.keywords', $keyWords);
The [[+seoPro.keywords]] is not set when there are no keywords. Can this always be set?
Issue
When a resource is rendered and their is no value set for the seoPro.keywords, it will not allow caching in Statcache or Stockpile Static Generator
Related code
Starting around line 164
SEOPro/core/components/seopro/elements/plugins/seopro.plugin.php
Line 164 in 41c7388
Could it be updated to: