Branch: Tag:

2021-05-05

2021-05-05 13:50:33 by Jonas Walldén <jonasw@roxen.com>

Add CACHE_INDEFINITELY() macro and associated limits to flag resources that
besides being cacheable also don't need any expires call-outs in Roxen. This
avoids long lists of rather pointless call-outs one year or more into the
future.

19:      constant module_type = MODULE_FILTER | MODULE_TAG;    - constant expire_time = 86400*365; // One year. -  +    constant default_process_tags = ([ "link" : "href",    "script" : "src" ]);   
107:    m_delete(res->extra_heads, "Expires");    }    -  RAISE_CACHE(expire_time); +  CACHE_INDEFINITELY();    PROTO_CACHE();       id->misc->vary = (<>);