Cache structs 1.6.x vs 1.8.x

Hey Guys,

We have been testing Nginx 1.8.x, and We realize that the cache

structure for Nginx 1.8.x is not compatible for Nginx 1.6.x. In other
words,
by updating Nginx 1.6.x to 1.8.x, all the cache objects will be
revalidated.
We are working in a tool to migrate 1.6.x cache objects to 1.8.x in
order to avoid any cache strike, but We have been having hard time to do
that. Do you guys know any tool to do such thing ?

Example:

cache struct Nginx 1.6:

Nginx 1.6 Cache object:
ValidSec: 1447542551 Sat Nov 14 23:09:11 2015
LastMod: 1438620329 Mon Aug 3 16:45:29 2015
Date: 1439766551 Sun Aug 16 23:09:11 2015
CRC-32: 4231235715
ValidMSec: 0
HeaderStart: 153
BodyStart: 536

cache struc Nginx 1.8:

Nginx 1.8 Cache object:
Version: 3
ValidSec: 1447759141 Tue Nov 17 11:19:01 2015
LastMod: 18446744073709551615 Wed Dec 31 23:59:59 1969
Date: 1439983141 Wed Aug 19 11:19:01 2015
CRC-32: 1428710042
ValidMSec: 0
HeaderStart: 269
BodyStart: 571
ETagLen: 0
ETag:
VaryLen: 26
Vary: Accept-Encoding,User-Agent

Thank in advance.

Biazus

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261151,261151#msg-261151

Hi Guys,

We have developed a “cache migration tool” in order to keep the cache
compatibility between Nginx 1.6.x and 1.8.x.

Comments and suggestions are welcome!

https://github.com/acaciocenteno/ngx_scripts

Thanks,
Biazus

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261151,261210#msg-261210

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs