1
0
Fork 0

check for file size to be consistent

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@571 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent f39afa916d
commit 7293c3f9c2

@ -292,7 +292,7 @@ static xc_entry_t *xc_entry_find_dmz(xc_entry_t *xce TSRMLS_DC) /* {{{ */
xc_entry_t *p;
for (p = xce->cache->entries[xce->hvalue]; p; p = p->next) {
if (xc_entry_equal_dmz(xce, p)) {
if (p->type == XC_TYPE_VAR || /* PHP */ p->mtime == xce->mtime) {
if (p->type == XC_TYPE_VAR || /* PHP */ p->size == xce->size && p->mtime == xce->mtime) {
p->hits ++;
p->atime = XG(request_time);
return p;

Loading…
Cancel
Save