When use a cache system with WordPress - wordpress

(sorry if this is duplicated but I couldn't find anything related)
I have an WordPress 3.0.3 instalation with some custom coding and tried the W3 Total Cache plugin but had some problems...so I've decided to deactivated it.
And now I'm wondering that there are any average number of daily visits that becames necessary the use of a cache system.
I'm not saying with this that I don't want to use a cache system, but only managing priorities.
Thanks in advance!

And now I'm wondering that there are any average number of daily visits that becames necessary the use of a cache system.
You'll know when you need one. Believe me. :)
Seriously: If request times become unbearably long, or the server gets resource problems in peak times, you need caching. That said, it is my opinion that it is never too early to cache a Wordpress blog. Also, loading times can influence your blog's Google rankings which may be a reason to activate caching even though visitor numbers are still low, and not causing problems for the server.
Anything more detailed is really hard to tell because servers differ massively. Some can deal with a larger number of simultaneous Wordpress requests than others, depending on equipment and setup.

Related

How to reduce ttfb time in wordpress sites?

How to reduce ttfb time ?
my wordpress site has very long ttfb time.
i tested result several time and result absolutely confuse me sometimes is lower than 200ms sometimes more than 5s !
what is the problem ?
network configuration or server side scripts ? or something else ?
It is not really a Wordpress specific problem as all websites should try to have a ttfb time as little as possible.
Generally speaking when you use a tool like Google page Speed or PingDom (to name a few), you should get some advices on how to improve your ttfb time.
Like using a cache system, compress and regroup JS/CSS files, reduce images size, using a CDN, etc...
Now on Wordpress ecosystem, you have a lot of plugins what can help you with that (especially if you're not a developper).
Here is a list of some I know and have already used that may help you:
W3 Total Cache (caching plugin) - A good free solution for setting a cache system on your WP (realivelly complicated to handle though)
WP Rocket (caching plugin) - an excellent non-free solution. Work pretty well (much easier to handle than W3 Total Cache). Affordable.
Imagify (image compression plugin) - this plugin re-compress and optimize you medias. It is developped by the same company as WP Rocket, you need to create an account on there service to use it. And they have a free plan.
In any case, if you're not a developper, I encourage you to get help from one because some caching options can produce unwanted effects like a JS component that doesn't work anymore of stuff like that so you need to test if your website still works each time you make a change.
Note: long ttfb time can also be related to the server itself (mutualized one for example).
Hope it help.

How to reduce the number of requests from Wordpress website

Actually I have done with the Wordpress website optimization through wp-optimize, Smush and wp-fastest-cache plugins and also optimizes images.
So my website speed reduced from 20+ seconds to 12-14 seconds almost.
But, I have checked with gtmetrix.com and pingdom tool, the number of requests from our website is still as it is (i.e. about 260+) and which is so harmful for SEO perspective.
I have to reduced those number of requests from our website and also increased speed from 14 seconds to 7 seconds.
So, what type of plugins or some custom activities I need to do for reducing number of requests from our website.
Please suggest.
Consider abandoning any use of plugins that perform these functions. Everything you are getting with compression plugins, is a simple job you can do yourself, lightening the processes and allowing Wordpress to be leaner and more secure.
As far as excessive requests are concerned, the same principle as stated above applies. The use of third-party plugins, involves a massive expenditure of useless resources and calls to scripts that are often redundant on all pages. The work to be done is to exclude all requests for various scripts in unnecessary pages.
Let's take a trivial example. By installing the Woocommerce plugin that everyone uses, they don't realize that the plugin in question preloads all the additional files it needs on each page and not on the pages that are strictly necessary. Like for example the js that allows the product gallery, it is also loaded into the homepage where it does not exist.
So be patient, check every additional request and exclude it if not necessary using the simple native Wordpress functions.
Forgive my bad English, but I hope I made myself understood.

What are my (other) options to reduce resource usage on shared hosting?

I got a message from our shared hosting company (InMotion) informing me our resource usage is too high. We have a WordPress-powered website. To give you an idea of our website, based on Google Analytics, we get 8,343 unique sessions per month. According to our webhost, we used 8660.71 MB of bandwith in January.
One day, InMotion told me there was a spike in CPU usage, and included an excerpt of my access logs which they say indicated "some heavy WordPress Admin activity". They said "We are not exactly sure what this admin user was attempting to accomplish, however this activity does seem to have inflated your account's CPU usage." They included the ID of the item that was uploaded and caused the spike. It was the only file I uploaded that day. It was a 7 kB PNG file; I uploaded it once, deleted it and uploaded it a second time.
I do not understand the complexities of resource usage, so to me, it seems stange that uploading a 7kB twice can bring about spikes and be considered heavy activities.
When I asked more about the Ressource Usage graph, they replied this : "The numbers are percentages. 100% means you're right at the top of what we consider normal CPU usage on a shared platform. Anything above that is VPS territory. If you zoom in on the graph, you'll see that for the most part you're right at 100%, but you occasionally have spikes over. Going through the logs, your CPU usage is mostly from the Wordpress Dashboard, so disabling the heartbeat feature should reduce your usage the most."
They also told me there was unusual activity to the wp-admin/admin-ajax.php.
At our hosting company's request, I did the following:
Disabled WordPress' heartbeat / autosave features
Installed a caching plugin (WP Fastest Cache)
Installed P3 Plugin Performance Plugin to see which plugins were using most resources
I deactivated 2 plugins that were highest in ressource usage : Scroll Back To Top and Simple Page Tester.
But even with these changes, there are still "spikes" in our resource usage and we are receiving warnings. Our host is recommending we either upgrade to VPS hosting or use a CDN service like CloudFlare or MAXCDN.
So my questions are as follow :
How can I tell what is really causing excessive ressource usage?
Are there other ways to reduce resource usage caused by WordPress?
Are CloudFlare or MAXCDN good for this type of situation?
Thank you for taking the time to read. Any help or tips will be appreciated!
Your usage is not at all surprising. If you get 8,343 unique sessions per month and you used 8660.71 MB, then each visitor is taking an average of about 1MB.
Just loading your home page is about 0.525MB, so if people browse your site (plus with admin traffic) it's easy to see how you might use that much.
Yes, a CDN like CloudFlare or MAXCDN would be really good for your situation. Your page is loading a lot of CSS, Javascript and images that could all be moved to a CDN. This would significantly reduce your host bandwidth usage and probably lower your page load time as an additional benefit.

Can Wordpress handle more than 100 pages?

I'm thinking of hosting over 100 pages on Wordpress and I'm worried about the performance. It's very easy to create a website with Wordpress, but is it able to handle it? What do you think?
It's true Wordpress doesn't handle Pages as good as Posts, but with 100 you should be fine.
This is mostly due to the fact that pages use a different mechanism to handle URL's and are hierarchical, as reported here that is enough to make a different impact on performance.
Wordpress has documentation about Performance but doesn't state exactly the amount it starts to lag, that is because it will depend on the hardware you're running your website on.
If by pages you mean posts, I recently worked with a site that had +21k posts and there were no problems on that end.
Hierarchical post types (like pages) can cause memory issues, here is the relevant Trac ticket. See also this blog post.
Wordpress can handle n number of pages.It is obvious that on every request by a user only one page is given in response and not all pages,hence you don't need to worry about website performance while considering number of pages...but If you do complex tasks in single page and user(or many users are) is accessing that page again and again than throughput will decrease and that will be for that page only,not for whole site.
Do not think about website performance on number of pages.

Site is abnormally slow

My site is running on Wordpress and uses Woocommerce to display most of the content. See my site here, I have a lot of images that could be part of the problem...
Google PageSpeed says I'm 0/100 for mobile speed and 11/100 for desktop speed, with a 44.5 server response time..
GTmetrix gives me an F for my speed, recommending I serve scaled images, leverage browser caching, add expired headers, make fewer http requests, and more.
I'm trying to interpret all of these poor scores, and would like some help on how to dramatically speed up my site.
Does anyone have any tips, or know what I can do to help increase the speed and improve my scores on these sites?
That site is certainly slow, however the load times appear to be primarily from the server (I'm seeing about a 3-5s load time before the server responds with content for the home page). This has nothing to do with how many images you are loading, it probably means you have a really slow plugin or piece of code.
I'm not sure how technical you are, but I'd recommend profiling your code. An easier solution may be to disable your plugins one-by-one until your site suddenly loads faster. Then re-enable every plugin except the last one to be disabled, and verify your site still loads fast. If it does, then the disabled plugin is likely the issue.

Resources