Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] compatibility with nginx (as proxy)

  • recently changed my set up to have nginx catch static content and proxy all php requests through to apache2.

    since I am using w3 total cache with most of its modules and using memcached as storage where applicable, should I instruct nginx to check if an object exists in memcached first and only if not request it from apache2?

    can that work?
    I mean nginx doesn’t put anything into the memcache only retrieves it… so if it is not found it retrieves it via apache and w3cache will put it into memcached again…
    sounds plausible to me, just need some advice on this one?

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
  • the nginx config looks likethis if implemented:

    server {
      location / {
        set $memcached_key $uri;
        memcached_pass     name:11211;
        default_type       text/html;
        error_page         404 @fallback;
      }
    
      location @fallback {
        proxy_pass backend;
      }
    }

    what does the key set by w3cache look like?

    answer @myself:

    the w3total ache key looks like: 50077f/default.include-footer.js.id

    – what does the 50077f stand for?
    – can I use w3cache on several blogs and store into the same memcache installation? won’t they overwrite each other? Could work if the 50077f part where kind-a unique identifier.

    any idea how to change set $memcached_key $uri; above so it picks up the right record from memcached?

    any official help here?

    Plugin Author Frederick Townes

    (@fredericktownes)

    Best to try the latest development release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] compatibility with nginx (as proxy)’ is closed to new replies.