Wordpress plugins refresh without page refresh? - wordpress

I'm setting up a personal dashboard using Wordpress featuring information such as Time Zones, RSS News Ticker, Stocks Charts, Server Status...
However a large number of Wordpress Plugins available have been designed to be only refreshed when the page is loaded, which is not optimal for my dashboard.
Is there a way to force all plugins to reload every x seconds without having to refresh the page manually?

Unless the plugins were designed to make asynchronous updates, I'm inclined to say no. Now, you could get creative and try to load each area into its own iframe, and then refresh each iframe periodically, but I think that's a poor solution.

Related

wordpress problem of slowing down and not showing the page well

I use METALOGIC THEME the problem is that the first page doesn't appear well to the user in addition to being slow
wordpress problem of slowing down and not showing the page well
There could be several reasons for this but my first instance is to ensure you don't have unnecessary plugins installed which can slow down your site.
Use Google PageSpeed Insights to analyse what could be wrong with your page. It will give you a good indication on what's affecting page load speed
Use a Good Caching plugin. W3 Total Cache is my personal favourite

WP Plugin idea/search: Selectively activate certain plugins on certain wp-admin pages

We use a lot of plugins and unfortunately can't remove more of them.
Our backend is slow.
Wordpress is built to load each plugin on every page load, also in the wp-admin backend. So even if you are on pages, where no plugin would be needed, woocommerce, contact form 7 etc. will be loaded. They put their CSS in the page but also do PHP stuff and slow everything down.
We know plugin organizer - a plugin that makes it possible to selectively load certain plugins on certain pages. They have a feature to do it on the backend - but it's a already a hell to work with it on the frontend. We use plugin logic in the frontend now.
Is there already a plugin or a hand crafted solution to select which plugins should be deactivated/activated on with wp-admin pages?
I guess it's needed to load every plugin on every wp-admin page to get the admin menu (the left side menu) - so I might be needed to built this menu and cache it somehow.
And then selectively activate plugins for certain pages.
We use custom fields - so ACF plugin has to be activated on some pages - also on some woocommercer pages. Polylang (for multilang) must be activated on a lot of pages.
But for example woocommerce doesn't need to be loaded on the event calendar pages and vis versa.
Do you know of existing solutions to lower the time needed to build the backend.
Are there any caching options?
You cannot activate/deactivate plugins individually for particular pages. Each plugin is either active or not when your site loads.
Here's something to try: In your staging environment, deactivate all of the plugins to see if that solves your problem with the slow admin menu. If it does, reactivate each plugin one by one until you find the problematic plugin. Then troubleshoot from there to determine the root of the issue.
You could also check your server's error logs to see if there are any warnings indicating issues with the site.
If that doesn't help, one final piece of advice I would offer is to contact your hosting company directly to inquire about any potential server issues that are slowing down your site's performance.

Caching plugins will affect the wordpress shop stock control?

To avoid a lot of memory consuption on my server. I am thinking to activate server caching and using wordpress caching plugins as well.
However, my wordpress is an online store. So, I am unsure that how it'd work out. Like will enabling caching will cause delays in the stock control in woocommerce?
Like I am afraid if a customer buys an item, it wont be reduced by 1 immediately because of the caching plugin?
Let me know if that is the case?
Regards
You can use a cache plugin with a Wordpress powered online stores, but you must exclude all store related pages from being cached so that they remain dynamic. If they are not, you store will not work correctly. This page will help you correctly configure your WooCommerce store in conjunction with various mainstream caching plugins.

Dynamic Content not working with WP Super Cache

wonder if someone can help. I am trying to add a cart widget to the header of a woocommerce enabled site. However, when WP Super Cache is enabled, the widget doesn't update when something is added to the cart, understandably.
I am trying to add the following so the widget isn't cached:
<!--dynamic-cached-content-->
<?php echo time(); ?>
<!-- my_dynamic_content(); -->
<!--/dynamic-cached-content-->
I have just displayed the time in this case to see if I can get it working.
I have set the caching to PHP cache, with late init and dynamic caching enabled but the time still doesn't update when I'm logged out of the administrator.
I have trailed through documentation to see if there is another way to get this working but so far I have not found a way.
Can anyone point me in the right direction? Maybe I've got this completely wrong!
I just want one widget to be dynamic in the header.
Thank you in advance.
There are multiple types of cache for web applications, and WordPress has ways to take advantage of all of them.
Plugins like WP Super Cache, W3 Total Cache, and Batcache as well as server components like Varnish and Nginx implement page caching. These tools store a copy of the complete page and use that cached copy every time the same URL is requested. This is the fastest cache available, but the down side is they return the same HTML to everyone.
If you want to use a page cache but still have dynamic elements like your header widget, you'll have to render them in JavaScript.
If you've written your own theme, you can implement fragment caching by storing the rendered HTML of different sections of the page except the part you want to be dynamic. There's no plugin you can download that'll do it for you. You'll need to make your own judgement calls about what needs to be cached and for how long.
Lastly, you can just cache the data used to render pages. Look for information on WordPress persistent object caching or write code to use WordPress's Transients API. A persistent object cache plugin can automatically store the results of WordPress's queries to something like Memcached or Redis if you have that available.

Lightening web page load for crawlers

On a shared host, I'm experiencing high CPU / page load times. Wincachegrind and Firebug showed that the bottlenecks are:
- db queries (time)
- images loading (time)
- Wordpress plugins / filters (CPU)
I have installed WP Supecache, however I have noticed that the problem has been shifted elsewhere: as the site has a great number of posts (> 50,000) the time & CPU consuming task has been shifted to WP Supercache generating static files, on crawlers access.
Ironically, the site has very little user access daily (about 1,000), while suffering large crawler access daily (Google webmasters shows a MAX:23,669/Average:11,712/MIN:4,069 pages stats).
I was thinking about helping the crawling page phase, avoiding loading some elements/parts of the page when being crawled. For example, images and "related posts", not "strategic" for the indexing process....could "lazy loading" of those parts help?
Or? What steps would you take further on, assuming:
- the users traffic to the site is very small,
not justifying stepping to costly dedicated/CDN solutions
- Efforts have been taken to minimize plugin impact
- Page design has been improved using CSS sprites, source minifying,
using consistent host names, etc, etc pushing page score
to higher limits (Yslow, pagespeed)
I believe the next step would be to use Wordpress as the backend, creating a lower level coded frontend (PHP + MYSQL)....
Comments appreciated
I have switched to a dynamic page whose content is loaded with jQuery.
This turned down page load time to a 1/3 !!!
Great!

Resources