• Could you please add warning that this plugin does not work properly when used with web server different from Apache?

    Since NGINX server does not use htaccess files, it is unable to benefit from the setup you configure for mod_rewrite.

    This means that the most important part of the plugin is not used = the ability to skip the overhead of loading entire wordpress – core, plugins, themes.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Emre Vona

    (@emrevona)

    what do you mean with “Does not work properly” ?

    Thread Starter marekrostcz

    (@marekrostcz)

    Correct me – if I’m wrong:

    Since the plugin cannot integrate with mod_rewrite – it does nothing to skip the PHP overhead of loading WP core, themes and plugins.

    This is – by far – the biggest part that slows down server response time. As a result the plugin does nearly nothing for the Time To First Byte (TTFB) metric measured by Google. It helps only with things that happen afterwards – speed-up display of pre-compiled template files, send minified HTML, CSS, JS, images.

    If you wish I can provide you with samples of websites where I installed the plugin – and the method I measure my TTFB.

    Plugin Author Emre Vona

    (@emrevona)

    if cache is not served via mod_rewrite, it is served via PHP and it causes slowness. No plugin is able to update the config file of Nginx.

    Thread Starter marekrostcz

    (@marekrostcz)

    I get that. Now the question is:

    Can the plugin provide some sort of instructions – what to do with Nginx – specifically, what to paste into Nginx config file?

    Or is it simply impossible to skip PHP overhead with Nginx? Meaning that either 1. the website will have to be slower or 2. I have to switch to Apache?

    Plugin Author Emre Vona

    (@emrevona)

    Switching to Apache would be a much better choice.

    dimal

    (@dimalifragis)

    @marekrostcz Just put this in your wp config and all good.

    define(“WPFC_SERVE_ONLY_VIA_CACHE”, true);

    This will make FC to use PHP. mod_rewrite is only in theory faster than php mode. Also mod_rewrite makes most-if-not-all firewalls plugins to not work right, since mod_rewrite has the highest priority. And firewalls work AFTER the cached pages are served. For example Wordfence and caching with mod_rewrite, the Rate Limit feature doesn’t work at all.

    I hope i helped.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Does not work properly with NGINX’ is closed to new replies.