Next: , Up: Server   [Contents][Index]


5.4.1 cache

Cache process manage the local server cache’s directory.

Notice: in order to not delete unsafe archives, Cache compute archive’s scores using the same algorithm as serv (see serv) based on image’s score provided by /etc/mediatex/mdtx-COLL/servers.txt (see servers.txt).

Cache use 3 options defined into the /etc/mediatex/mdtx.conf (see mdtx.conf) file:

cacheSize

the maximum size that limit growing operations into the cache

cacheTTL

the minimum time a file notified to USER (see Who) has to be keept into the cache

queryTTL

the time to live of a USER query is kept into the ~mdtx/md5sums/mdtx-COLL.md5 (see mdtxCOLL.md5) file

Process conceptual model:

mediatex-figures/cache

Code:

src/server/cache.c