Show
Ignore:
Timestamp:
08/20/07 22:57:00 (1 year ago)
Author:
hans
Message:

Added cache object creation timestamp (shm and disk)\nAltered control panel and eaccelerator_cached_scripts() for ttl and creation timestamp display\nChanged some counters in ea_cache_entry from signed to unsigned int\nSome language and mmCache remnants fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/eaccelerator.h

    r330 r337  
    278278 
    279279/* 
    280  * A mm_cache_entry is a bucket for one PHP script file. 
    281  * Nested  functions and classes which defined in the file goes 
    282  * into the list of mm_fc_entry. 
     280 * A ea_cache_entry is a bucket for one PHP script file. 
     281 * User functions and classes defined in the file go into 
     282 * the list of ea_fc_entry. 
    283283 */ 
    284284typedef struct _ea_cache_entry { 
    285285        struct _ea_cache_entry *next; 
    286286#ifdef EACCELERATOR_USE_INODE 
    287         dev_t st_dev;                           /* file's device                     */ 
    288         ino_t st_ino;                           /* file's inode                      */ 
    289 #else 
    290         unsigned int hv;                        /* hash value                        */ 
     287        dev_t st_dev;                           /* file's device                         */ 
     288        ino_t st_ino;                           /* file's inode                          */ 
     289#else 
     290        unsigned int hv;                        /* hash value                            */ 
    291291#endif 
    292292        off_t filesize;                         /* file size */ 
    293         time_t mtime;                           /* file last modification time       */ 
    294         time_t ttl;                                     /* expiration time                   */ 
    295         int size;                                       /* entry size (bytes)                */ 
    296         int nhits;                                      /* hits count                        */ 
    297         int nreloads;                           /* count of reloads                  */ 
    298         int use_cnt;                            /* how many processes uses the entry */ 
     293        time_t mtime;                           /* file last modification time           */ 
     294        time_t ttl;                             /* expiration time (updated on each hit) */ 
     295        time_t ts;                              /* timestamp of cache entry              */ 
     296        unsigned int size;                      /* entry size (bytes)                    */ 
     297        unsigned int nhits;                     /* hits count                            */ 
     298        unsigned int nreloads;                  /* count of reloads                      */ 
     299        int use_cnt;                    /* how many processes uses the entry     */ 
    299300        ea_op_array *op_array;  /* script's global scope code        */ 
    300301        ea_fc_entry *f_head;            /* list of nested functions          */ 
     
    318319 
    319320/* 
    320  * Linked list of mm_cache_entry which are used by process/thread 
     321 * Linked list of ea_cache_entry which are used by process/thread 
    321322 */ 
    322323typedef struct _ea_used_entry { 
     
    344345        int size; 
    345346        time_t mtime; 
     347        time_t ts; 
    346348        unsigned int crc32; 
    347349} ea_file_header;