-
Notifications
You must be signed in to change notification settings - Fork 158
LoadFromFileCacheTtlMs is not honored (*after* first request) #1552
Conversation
Not ready to go in yet, needs more verification of code paths. Fixes apache/incubator-pagespeed-ngx#1418
ed5ed3d
to
5555d21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch. It shouldn't be too hard to add a unit test, I think.
|
||
// Determine if we need to use the implicit cache ttl ms or the implicit | ||
// load from file cache ttl ms. | ||
int64 implicit_ttl = Options()->implicit_cache_ttl_ms(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implicit_ttl_ms (paranoid about units I am :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@jmarantz I changed an existing unit test, WDYT? |
@@ -454,6 +461,16 @@ void InPlaceRewriteContext::RemoveRedundantRelCanonicalHeader( | |||
ResponseHeaders::RelCanonicalHeaderValue(url_)); | |||
} | |||
|
|||
bool InPlaceRewriteContext::IsLoadFromFileBased() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oschaaf. Does this mean it's in master already? I'm new here. Strike that. I just read...
|
@0x42h It's not in master yet, this code change is currently under review. If everyone is happy with it it will get merged to master. |
Fixes apache/incubator-pagespeed-ngx#1418