[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ next ]


Smart Cache Manual
Chapter 11 - Smart Cache repair utility


SC comes with external utility for repairing broken .cacheinfo files and importing of orphan files. When importing files, repair looks at filename extension and tries to guess mime file type. When testing the cache repair compares also last modified date of file and file length against records in .cacheinfo.


11.1 Running repair

Repair is invoked with java repair command. If you do not type any parameters, short usage summary will be printed. Repair can be also invoked directly from Smart Cache, when command-line option -repair is used.


11.2 Command line switches

-q

quiet mode. Prints less messages.

-r

recursive into subdirectories.

-c

compress text files with gzip.

-w

Write new .cacheinfo files even if they do not changed. Use this with -r if you want to convert Smart Cache data directory into new format.

-n

Do not actually make changes. Only print messages what will do.

-f

ignore existing .cacheinfo files, rebuilds them from scratch. Use them if some files has been repaired with wrong MIME type.

-i <filename>

"null" filename. If repair find file with this name, it will not append this filename to directory name, when constructing resulting URL. Contents of this file will be used as default directory index returned by server.

-x <mask>[:mask] ...

Ignore these files when rebuilding directory. Default is to ignore *.tmp. File mask '!' resets ignored mask list to empty.

-d <content type>

Default content-type. Used when it can not be guessed from file name.

-a

Translate &amp; to & in URL. Some browsers performs URL dequoting and could not find these objects.

-m <file>

Use external MIME table for guessing filetype from extension. Filename ! resets table to empty.


11.3 External MIME table file format for repair

Line format is: mimetype [spaces or tabs] [extension ...]

     video/dl                                        dl
     video/fli                                       fli
     video/gl                                        gl
     video/mpeg                                      mpeg mpg mpe
     video/quicktime                                 qt mov

[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ next ]


Smart Cache Manual

0.94

Radim Kolar hsn_nospam_at.sendmail.dot.cz