Rt-Fastcgi-Cache

So… having a lot of time on my behalf, I started playing with EasyEngine into different scenarios. Basically what I’m trying to do right now is to install the following stack…

  • Ubuntu 14.04 10$ DO droplet for www server:

  • nginx + php5-fpm(as a fallback) + HHVM + SSL with SPDY & testing the PageSpeed module

  • Ubuntu 14.04 5$ droplet for MySQL (MariaDB)

Basically everything is blazing fast, I love how I put PageSpeed cache into the memcache, love how HHVM acts and I love EasyEngine because… well… its easy.

Right now I have one problem. I can’t see any more cache hits on my server (rt-Fastcgi-Cache).

The testing server is devly.co and if you curl -I https://devly.co it won’t show the cache hit.

Example:

root@devly:~# curl -I https://devly.co
HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Pingback: https://devly.co/xmlrpc.php
Alternate-Protocol: 443:npn-spdy/3
Strict-Transport-Security: max-age=31536000; includeSubdomains
Date: Fri, 17 Oct 2014 19:30:05 GMT
X-Page-Speed: 1.8.31.4-4009
Cache-Control: max-age=0, no-cache

root@devly:~#

In my nginx block everything is ok:

server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name devly.co www.devly.co;

ssl on;
ssl_certificate /var/www/devly.co/cert/ssl-bundle.crt;
ssl_certificate_key /var/www/devly.co/cert/devly_co.key;
ssl_buffer_size 8k;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /var/www/devly.co/cert/trustchain.crt;
proxy_ssl_session_reuse off;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;

access_log   /var/log/nginx/devly.co.access.log rt_cache;
error_log    /var/log/nginx/devly.co.error.log;
add_header Alternate-Protocol  443:npn-spdy/3;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";

root /var/www/devly.co/htdocs;
index index.php index.htm index.html;

include common/wpfc.conf;
include common/wpcommon.conf;
include common/locations.conf;
include common/pagespeed.conf;

}

server {

listen 80;
listen [::]:80;
server_name devly.co www.devly.co;
return 301 https://$server_name$request_uri;
}

What do you think I need to do ?

Update.

Ok, it seems for a weird motive, If I put in my server block add_header rt-Fastcgi-Cache $upstream_cache_status; even dough it was working before…

Now it shows rt-Fastcgi-Cache: HIT.

Any suggestions to test ? Let’s help EE to grooooow bigger guys :slight_smile:

Hi @alexblajan

It’s been a long time, and we haven’t heard from you. Please try latest EasyEngine and let me know if you’re having the same issue or any other.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: