Would caching help our LAMP application to load 80% faster?
by Chris80 from LinuxQuestions.org on (#4TNAE)
Hello,
we're running a WordPress (which itself is taking only 2 - 5 sec to have a rendered page in the browser) on a VPS1 (4GB RAM) with a custom plugin.
The plugin is making REST calls to a REST API of our CRM system. This CRM is sitting on another VPS2 (4GB RAM, different country and continent from the first VPS).
Accessing WordPress "inside" the plugin pages takes usually around 15 - 25 sec in the browser to load the page.
The custom plugin serves dynamic content for every logged-in user (which comes from the CRM).
For now, we are bound to:
- WordPress with the plugin and the REST calls
- CRM with its overhead
- PHP 5.6 due to the custom code
We have around 20 CRM users for ca. 10 hours a day with a very low server load and the WordPress site has even fewer users with fewer hours a day with a low server load as well.
Since we cannot easily change/optimize the code, we are looking into alternatives like caching.
If we set up Varnish or NGinx as a caching instance might it possible to reduce our load times to 2 - 4 sec?
Are there any means of estimating the outcome before we start the project?
Thanks, Chris


we're running a WordPress (which itself is taking only 2 - 5 sec to have a rendered page in the browser) on a VPS1 (4GB RAM) with a custom plugin.
The plugin is making REST calls to a REST API of our CRM system. This CRM is sitting on another VPS2 (4GB RAM, different country and continent from the first VPS).
Accessing WordPress "inside" the plugin pages takes usually around 15 - 25 sec in the browser to load the page.
The custom plugin serves dynamic content for every logged-in user (which comes from the CRM).
For now, we are bound to:
- WordPress with the plugin and the REST calls
- CRM with its overhead
- PHP 5.6 due to the custom code
We have around 20 CRM users for ca. 10 hours a day with a very low server load and the WordPress site has even fewer users with fewer hours a day with a low server load as well.
Since we cannot easily change/optimize the code, we are looking into alternatives like caching.
If we set up Varnish or NGinx as a caching instance might it possible to reduce our load times to 2 - 4 sec?
Are there any means of estimating the outcome before we start the project?
Thanks, Chris