Changes not visible when not logged in

Try to remove all the revisions from the edited page in admin panel. You can find the revisions in right sidebar. And you can disable the revisions by using config.php by putting this define(‘WP_POST_REVISIONS’, false);. And also you can delete from database using SQL query DELETE FROM wp_posts WHERE post_type = “revision”; Hope it will … Read more

What is the best way to cache pages on WordPress

No, there isn’t. WordPress does not provide page caching mechanisms, and has no APIs for it. There is no generic way to say example.com/page is now stale and needs recreating. Nor is there any generic way to pre-generate every page short of visiting them all. Every plugin uses a different solution with different APIs and … Read more

RSS: fetch_feed caching with different caching delay per feed?

You can use the second parameter passed to the wp_feed_cache_transient_lifetime filter which, in the context of fetch_feed(), is the URL of the feed: add_filter( ‘wp_feed_cache_transient_lifetime’, function ( $time, $url ) { if ( $url === ‘https://example.com/rss’ ) { $time = MONTH_IN_SECONDS; } return $time; }, 10, 2 );

Cache DB queries result

As long as you use WP API ($wpdb) to perform queries, they will be cached by caching plugins (well, by those that have such functionality). If you need to cache data that is more compelx to generate rather than just retrieve look into Transients API.

Shortcode Strategy

Either way you’re going to need to store the data you retrieve from an external database, in your WordPress database, if you don’t want to continually run the same query on your external database each time the page is accessed. You can either store the data in your WordPress database using Custom Fields (post meta) … Read more

Any idea why Google not caching my site? [closed]

I looked at the source code of the site and found this: <meta name=”robots” content=”noodp,noydir,noarchive,nosnippet”/> Apparently noarchive tells Google to not cache the page. Check out Google Webmaster Tools documentation/guidelines for “Meta tags” for more info on what each value does. PS: If you are unaware, nosnippet should also be removed as it “prevents a … Read more

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