Improving wpdb queries with large data

Caching is Your Friend I understand your frustration with adding another plugin, but a method for extending WordPress cache is highly recommended for any WordPress sites getting any kind of traffic. These plugins allow WordPress to store cache somewhere better suited for storing and quickly accessing this data, such as Memcache, Redis, or even in … Read more

Add Hook for clearing transient when post is added

Add the below code in your active theme’s functions.php file. function wpse_delete_query_transient( $post ) { // Deletes the transient when a new post is published delete_transient( ‘d_results’ ); } add_action( ‘new_to_publish’, ‘wpse_delete_query_transient’ ); This will delete the transient every time when a new post is published. If you want to delete the transients on differrent … Read more

Popular posts with Varnish ESI

But if the single post page is cached in Varnish, wouldn’t the count stay the same? Yes, if the whole page is cached then the PHP will never get run to update the view count. You’d need an ESI block to call an uncached URL that will increment the view count. Or even an Ajax … Read more

No Query String vs Ignore Query String in WordPress

Honestly, if you don’t understand what is meant by the query string and you’re not a developer, then Standard will be fine. It’s the safest option without knowing more about your setup—choosing Ignore Query String could break your WordPress site depending on how it’s set up.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)