WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
compatibility with nginx (as proxy) (5 posts)

  1. Ovidiu
    Member
    Posted 3 years ago #

    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/

  2. Ovidiu
    Member
    Posted 3 years ago #

    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?

  3. Ovidiu
    Member
    Posted 3 years ago #

    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?

  4. Ovidiu
    Member
    Posted 3 years ago #

    any official help here?

  5. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Best to try the latest development release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic