wordpress/wp-content/themes/basic/themify/themify-widgets.php
/**
	 * Flush transient when post is saved.
	 * @param $post_id
	 */
Flush transient when post is saved.
Flush transient when post is saved .
function themify_twitter_flush_transient( $post_id ) {
		if (isset( $_POST['content'] ) && ! wp_is_post_revision( $post_id ) ) {
			$post_content = $_POST['content'];
			$count = substr_count($post_content, '[twitter');
			if($count===0){
				$count = substr_count($post_content, '[themify-twitter');
			}
			if ( $count > 0 ) {
				global $wpdb;
				$wpdb->get_results( "DELETE FROM $wpdb->options WHERE `option_name` LIKE ('_transient_tf_tweets_%')" );
			}
		}
	}
function themify_twitter_flush_transient ( $ post_id ) { if ( isset ( $ _POST [ 'content' ] ) && ! wp_is_post_revision ( $ post_id ) ) { $ post_content = $ _POST [ 'content' ] ; $ count = substr_count ( $ post_content , '[twitter' ) ; if ( $ count === 0 ) { $ count = substr_count ( $ post_content , '[themify-twitter' ) ; } if ( $ count > 0 ) { global $ wpdb ; $ wpdb -> get_results ( " DELETE FROM  $ wpdb -> options  WHERE `option_name` LIKE ('_transient_tf_tweets_%') " ) ; } } }
Flush transient when post is saved.
Flush transient when post is saved .
//verify post is not a revision // Count unprefixed and/or prefixed shortcode instances // delete transient