Forum: NGINX wp super cache rewrite rule

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E84e93646376def3fbed0907fe9335e1?d=identicon&s=25 Max (Guest)
on 2009-03-06 07:52
(Received via mailing list)
Hello,

When I look at the stats at wp super cace, it always show 0 page for wp
super cace:

Cache Contents

WP-Cache

    * 71 Cached Pages
    * 0 Expired Pages

WP-Super-Cache

    * 0 Cached Pages
    * 0 Expired Pages

Garbage Collection
Last: 2009-03-05 19:25:31
Next: 2009-03-05 19:35:31

I also look at the footer at my page, it shows:

<!-- Dynamic Page Served (once) in 0.080 seconds -->
<!-- Cached page generated by WP-Super-Cache on 2009-03-06 01:31:30 -->

So I don't know why teh wp-super-cache page is always 0. The following
is my rewrite rule. Does any body got a working rewrite rule for wp
suer cache? Thanks a lot.

                set $wp_super_cache_file '';
                set $wp_super_cache_uri $request_uri;

                if ( $request_method = POST )
                {
                        set $wp_super_cache_uri '';
                }

                if ( $query_string )
                {
                        set $wp_super_cache_uri '';
                }

                if ( $http_cookie ~*
"comment_author_|wordpress|wp-postpass_" )
                {
                        set $wp_super_cache_uri '';
                }

                if ( $wp_super_cache_uri ~ ^(.+)$ )
                {
                        set $wp_super_cache_file
/wp-content/cache/wp_super_cache/$http_host/$1index.html;
                }

                if ( -f $document_root$wp_super_cache_file )
                {
                        rewrite ^(.*)$ $wp_super_cache_file break;
                }

                if (-f $request_filename)
                {
                        expires 30d;
                        break;
                }

                if (!-e $request_filename)
                {
                        rewrite ^(.+)$ /index.php?q=$1 last;
8e6a19cfb5ea4ca1cf42f1db65550c35?d=identicon&s=25 Helgem Megelaat (vmirjamali)
on 2009-03-09 07:21
Here you go this is what I used:

http://nielsvz.com/2009/02/nginx-and-wordpress/
This topic is locked and can not be replied to.