Changes between Initial Version and Version 3 of Ticket #152


Ignore:
Timestamp:
2009-07-30T05:08:16+02:00 (6 years ago)
Author:
moo
Comment:

there is already a patch in 1.3 that check sourcesize: if (p->type == XC_TYPE_VAR || /* PHP */ (p->data.php->mtime == xce->data.php->mtime && p->data.php->sourcesize == xce->data.php->sourcesize)) {

do you think it enough? checking filename is the "right" option for hashing but not for md5+hardlink patch in 2.0

in 2.0, it can do md5 to cache multiple same content file in 1 copy of shared memory, filename (path) is absolute not equal.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #152 – Description

    initial v3  
    66
    77Looking at the cached files, there a duplicates, e.g.:
     8{{{
    89  php#0 71  /path/inc/generic/model/_genericcache.class.php  0  0  6.04 K  2.79 K  4 M  2051  508796  8 m  8 m
    910  php#0 72  /path/inc/generic/model/_genericcache.class.php  2  0  6.04 K  2.79 K  4 M  2051  508795  10 s  8 m
     11}}}
    1012
    1113I'm not sure if this is related to the PHP files being accessed during "deletion" and have not tried to create a smaller testcase.
     
    1618
    1719My settings:
     20{{{
    1821xcache.admin.enable_auth  On
    1922  xcache.cacher  On
     
    3538  xcache.var_slots  8K
    3639  xcache.var_ttl  0
     40}}}
    3741
    3842I'm using the 1.2 branch and PHP_5_2 (both uptodate).