Cache structs 1.6.x vs 1.8.x

biazus nginx-forum at nginx.us
Thu Aug 20 18:36:09 UTC 2015


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



More information about the nginx mailing list