@ Darrin
re: So it’s weird that in the editing interface through Connections that the changes appear to have taken effect, but no change has taken effect on the website. Any ideas?
That is because much of the data, such as links, is cached in the primary {wpdb_prefix}_connections
table. When entry data is shown, it uses the cached objects vs the actual data in the tables. This greatly reduced queries, page load time and server resources required. When you edit an entry the data is saved in the table and the object cache is updated.
Right now, there is not an easy way to update this cache. The core Connections code is undergoing a massive change (starting with the recently release of 8.6) which will make it possible to create a tool to upgrade the cached objects without having to edit the entry.
Using this code snippet should disable the object caches:
function cn_disable_output_cache( $cached ) {
return FALSE;
}
function cn_enable_output_cache() {
remove_filter( 'cn_address_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_email_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_link_cached', 'cn_disable_output_cache' );
remove_filter( 'cn_date_cached', 'cn_disable_output_cache' );
}
add_filter( 'cn_address_cached', 'cn_disable_output_cache' );
add_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
add_filter( 'cn_email_cached', 'cn_disable_output_cache' );
add_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
add_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
add_filter( 'cn_link_cached', 'cn_disable_output_cache' );
add_filter( 'cn_date_cached', 'cn_disable_output_cache' );
add_action( 'cn_update-entry', 'cn_enable_output_cache');
add_action( 'cn_save-entry', 'cn_enable_output_cache');
Use the Code Snippets plugin to add this snippet to run on the site’s frontend. It’s been awhile since I’ve tested it, let me know how it goes.
Hope this helps!