Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
20bb2a0b
Commit
20bb2a0b
authored
Apr 03, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add beresp.uncacheable (will replace beresp.do_pass) and obj.uncacheable
variables.
parent
6c6a41a2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
5 deletions
+26
-5
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+9
-0
c00011.vtc
bin/varnishtest/tests/c00011.vtc
+1
-1
c00014.vtc
bin/varnishtest/tests/c00014.vtc
+1
-1
e00011.vtc
bin/varnishtest/tests/e00011.vtc
+1
-1
r00318.vtc
bin/varnishtest/tests/r00318.vtc
+1
-1
r01206.vtc
bin/varnishtest/tests/r01206.vtc
+1
-1
generate.py
lib/libvcl/generate.py
+12
-0
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
20bb2a0b
...
...
@@ -202,6 +202,7 @@ VBERESP(beresp, unsigned, do_gzip, busyobj->do_gzip)
VBERESP
(
beresp
,
unsigned
,
do_gunzip
,
busyobj
->
do_gunzip
)
VBERESP
(
beresp
,
unsigned
,
do_stream
,
busyobj
->
do_stream
)
VBERESP
(
beresp
,
unsigned
,
do_pass
,
busyobj
->
do_pass
)
VBERESP
(
beresp
,
unsigned
,
uncacheable
,
busyobj
->
do_pass
)
/*--------------------------------------------------------------------*/
...
...
@@ -553,6 +554,14 @@ VRT_r_obj_lastuse(const struct req *req)
return
(
VTIM_real
()
-
req
->
obj
->
last_use
);
}
unsigned
VRT_r_obj_uncacheable
(
const
struct
req
*
req
)
{
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
obj
,
OBJECT_MAGIC
);
return
(
req
->
obj
->
objcore
->
flags
&
OC_F_PASS
?
1
:
0
);
}
unsigned
VRT_r_req_backend_healthy
(
const
struct
req
*
req
)
{
...
...
bin/varnishtest/tests/c00011.vtc
View file @
20bb2a0b
...
...
@@ -11,7 +11,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_response {
set beresp.
do_pass
= true;
set beresp.
uncacheable
= true;
}
} -start
...
...
bin/varnishtest/tests/c00014.vtc
View file @
20bb2a0b
...
...
@@ -15,7 +15,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_response {
set beresp.
do_pass
= true;
set beresp.
uncacheable
= true;
}
} -start
...
...
bin/varnishtest/tests/e00011.vtc
View file @
20bb2a0b
...
...
@@ -17,7 +17,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_response {
set beresp.
do_pass
= true;
set beresp.
uncacheable
= true;
set beresp.do_esi = true;
}
} -start
...
...
bin/varnishtest/tests/r00318.vtc
View file @
20bb2a0b
...
...
@@ -8,7 +8,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_response {
set beresp.do_esi = true;
set beresp.
do_pass
= true;
set beresp.
uncacheable
= true;
}
} -start
...
...
bin/varnishtest/tests/r01206.vtc
View file @
20bb2a0b
...
...
@@ -40,7 +40,7 @@ server s1 -start
varnish v1 -vcl+backend {
sub vcl_response {
set beresp.
do_pass
= true;
set beresp.
uncacheable
= true;
}
}
...
...
lib/libvcl/generate.py
View file @
20bb2a0b
...
...
@@ -345,6 +345,12 @@ sp_variables = (
(
'response'
,),
'const struct req *'
),
(
'beresp.uncacheable'
,
'BOOL'
,
(
'response'
,),
(
'response'
,),
'const struct req *'
),
(
'beresp.ttl'
,
'DURATION'
,
(
'response'
,),
...
...
@@ -441,6 +447,12 @@ sp_variables = (
(
),
'const struct req *'
),
(
'obj.uncacheable'
,
'BOOL'
,
(
'lookup'
,
'deliver'
,
'error'
,),
(
),
'const struct req *'
),
(
'resp.proto'
,
'STRING'
,
(
'deliver'
,),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment