WordPress Speed Optmization

Hi people. I am back here bringing a serie of articles with strategies to optimize the performance and speed of a WordPress installation. I will cover these topics every monday:

  • Webserver
  • Caching
  • CDN
  • Backend
  • Database
  • Memory Cache
  • Improvements on static files
  • And much more

To introduce these topics, I would like to talk a little bit about me and my experience. During the last years I have been working with WordPress and how to extract the maximum potential of servers.

This task is not so difficulty, because the WordPress system is not so heavy to load. But the problem is when people use your creativity to create a problematic environments. Lots of plugins, poorly code and million of static files to manage are the perfect combination to make your WordPress weeps.

So, I expect you here next monday to talk more about caching strategies. This journey is just beginning. See you later.

Enable CORS for Nginx

Whom have worked with cross-origin HTTP requests knows that one of the actions to make this working is enable CORS in API’s webserver .

As I work with Nginx, the code that warns browsers (Firefox e Chrome) and allow pre-flight requests is presented below:

The flow of this browsers is: making a pre-flight request to test the webserver, before making the real request. The code above allow the cross-origin request flow goes ahead. You will need to implement this code between “location” block.

More informations in Enable CORS and here. Hope this useful.