Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
83319e42
Commit
83319e42
authored
Mar 18, 2014
by
Tollef Fog Heen
Committed by
Tollef Fog Heen
Mar 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obj.last_use
parent
243e6909
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
18 deletions
+1
-18
builtin.vcl
bin/varnishd/builtin.vcl
+0
-1
cache.h
bin/varnishd/cache/cache.h
+0
-1
cache_cli.c
bin/varnishd/cache/cache_cli.c
+0
-1
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+0
-2
stevedore.c
bin/varnishd/storage/stevedore.c
+0
-1
v00013.vtc
bin/varnishtest/tests/v00013.vtc
+1
-3
generate.py
lib/libvcc/generate.py
+0
-9
No files found.
bin/varnishd/builtin.vcl
View file @
83319e42
...
...
@@ -118,7 +118,6 @@ sub vcl_deliver {
* Enable them only if you need them.
*
* set obj.hits = obj.hits + 1;
* set obj.last_use = now;
*/
return (deliver);
}
...
...
bin/varnishd/cache/cache.h
View file @
83319e42
...
...
@@ -610,7 +610,6 @@ struct object {
/* VCL only variables */
long
hits
;
double
last_use
;
double
last_modified
;
...
...
bin/varnishd/cache/cache_cli.c
View file @
83319e42
...
...
@@ -200,7 +200,6 @@ cli_debug_sizeof(struct cli *cli, const char * const *av, void *priv)
OFOF(struct object, http);
OFOF(struct object, store);
OFOF(struct object, esidata);
OFOF(struct object, last_use);
#endif
#undef OFOF
#endif
...
...
bin/varnishd/cache/cache_vrt_var.c
View file @
83319e42
...
...
@@ -592,8 +592,6 @@ VRT_r_obj_##field(const struct vrt_ctx *ctx) \
VOBJ_L
(
long
,
hits
)
VOBJ_R
(
long
,
hits
)
VOBJ_L
(
double
,
last_use
)
VOBJ_R
(
double
,
last_use
)
unsigned
VRT_r_obj_uncacheable
(
const
struct
vrt_ctx
*
ctx
)
...
...
bin/varnishd/storage/stevedore.c
View file @
83319e42
...
...
@@ -286,7 +286,6 @@ STV_MkObject(struct stevedore *stv, struct busyobj *bo,
HTTP_Setup
(
o
->
http
,
bo
->
ws_o
,
bo
->
vsl
,
SLT_ObjMethod
);
o
->
http
->
magic
=
HTTP_MAGIC
;
o
->
exp
=
bo
->
exp
;
o
->
last_use
=
bo
->
t_fetch
;
VTAILQ_INIT
(
&
o
->
store
);
bo
->
stats
->
n_object
++
;
...
...
bin/varnishtest/tests/v00013.vtc
View file @
83319e42
varnishtest "Check obj.hits
and obj.last_use
"
varnishtest "Check obj.hits"
server s1 {
rxreq
...
...
@@ -13,9 +13,7 @@ varnish v1 -vcl+backend {
sub vcl_deliver {
set resp.http.foo = obj.hits;
set resp.http.bar = now - obj.last_use;
set obj.hits = obj.hits + 1;
set obj.last_use = now;
}
} -start
...
...
lib/libvcc/generate.py
View file @
83319e42
...
...
@@ -546,15 +546,6 @@ sp_variables = [
(
'hit'
,
),
"""
"""
),
(
'obj.last_use'
,
'TIME'
,
(
'hit'
,
'deliver'
,),
(
'hit'
,
'deliver'
,),
"""
The approximate time elapsed since the object was
last requests, in seconds. This variable is also
available in vcl_deliver.
"""
),
(
'obj.uncacheable'
,
'BOOL'
,
(
'hit'
,
),
...
...
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