Enable WP Rest API Cache for Contact form 7

First install this plugin: WP REST Cache then add this code in functions.php to enable form schema cache for contact form 7. You should use a child theme unless you’re using a custom build theme. Here’s the snippet: function tgg_add_cf7_endpoint( $allowed_endpoints ) { if ( ! isset( $allowed_endpoints[ ‘contact-form-7/v1’ ] ) || ! in_array( ‘contact-forms’,…

Fixing slow MySQL Queries on WordPress

Recently I find out about the Query Monitor plugin , I highly recommend it to troubleshoot a slow WordPress site. It will tell you exactly why the site is slow. I installed it on one of my website where I was using “Similar Posts” plugin. With more than 180,000 posts, the plugin slowed down the…