Index: trunk/willow/src/include/cache.h |
— | — | @@ -62,6 +62,10 @@ |
63 | 63 | _builtsz = _headers.length(); |
64 | 64 | } |
65 | 65 | |
| 66 | + time_t lastuse(void) const { |
| 67 | + return _lastuse; |
| 68 | + } |
| 69 | + |
66 | 70 | private: |
67 | 71 | friend struct httpcache; |
68 | 72 | friend struct caching_filter; |
— | — | @@ -108,7 +112,7 @@ |
109 | 113 | struct lru_comparator { |
110 | 114 | bool operator() (entmap::iterator a, |
111 | 115 | entmap::iterator b) const { |
112 | | - return a->second->_lastuse < b->second->_lastuse; |
| 116 | + return a->second->lastuse() < b->second->lastuse(); |
113 | 117 | } |
114 | 118 | }; |
115 | 119 | |