Samuel Sweitzer
Forum Replies Created
-
Forum: Plugins
In reply to: [Publish To Apple News] Post URL Filter ( )For anyone else struggling with this, I made the following solution. WARNING: This requires editing the plug-in’s code directly, which I DO NOT recommend. But I was unable to do this any other way.
File to edit: \wp-content\plugins\publish-to-apple-news\includes\apple-exporter\builders\class-metadata.php : line 61
OLD CODE:
// Add canonical URL.
$meta[‘canonicalURL’] = get_permalink( $this->content_id() );NEW CODE:
// Add canonical URL.
$meta[‘canonicalURL’] = get_permalink( $this->content_id() );
$meta[‘canonicalURL’] = apply_filters( ‘apple_news_markdown_hyperlink’, $meta[‘canonicalURL’] ); // add apple_news_markdown_hyperlink filter – Samuel Sweitzer 2019-07-16Thank you. Once a new version is available we will cautiously test it. Possibly with the “refresh cache” option on this time.
Also due to the high traffic of our live website once the 502 errors began we have to revert right away, but looking at the logs, the Resource temporarily unavailable error was occurring off and on for three hours before it caused the 502 errors to be visible.
Yea, we are using W3 Total Caching. Our refresh cycle is 1000 posts every hour.
I believe we had the plugin updated for 3 hours before our logged in users began experiencing 502 Gateway errors due to the CPU overload.