WP-Super-Cache garbage collection not working as expected

(I’ve contacted the plugin’s author as well, but I wanted to ask rtcamp in the event the plugin author is unfamiliar with nginx.)

  • Cron job runs wp-cron.php every half hour.
  • Cache timeout set to 1800.
  • Cache timer set to 1800.
  • Ubuntu 12.04 LTS / NGINX/1.4.4 (-V below) / PHP5-FPM
I'll get an email every half hour updating me on the number of files/directories deleted.

If I then view the number of “Expired Pages” on the “Contents” tab, it has the same number that was noted in the email. I.E. nothing was deleted. (I also have ‘Don’t cache pages for known users. (Recommended)’ checked.)

NOTE:

  • If I make a post prior to the garbage collection, the expired pages will be deleted correctly. Otherwise they will continue to accumulate without being deleted.
http://wordpress.org/plugins/wp-super-cache/

nginx version: nginx/1.4.4
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.4.4/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.4.4/debian/modules/nginx-dav-ext-module --add-module=/build/buildd/nginx-1.4.4/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.4.4/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.4.4/debian/modules/ngx_http_substitutions_filter_module

@jm

Even we have posted tutorials for wp-super-cache at http://rtcamp.com/wordpress-nginx/tutorials/ , problem is we are not using wp-super-cache from long time. So I won’t be able to debug your issue.

Try using https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/

It is uptodate and our “default” caching choice for all our client sites.