Using option --cache-dir DIR you tell pasdoc to use directory DIR as a cache. This means that

This means that pasdoc will not have to parse all units that you gave it on command line, so pasdoc will work faster.

Example:

I'm doing a large documentation for my 77 units. I'm generating documentation for them using command like

pasdoc --format html --cache-dir pasdoc-cache/ ...

(where "..." means "other options", specifying units to process etc.) Generating documentation for the first time takes 43 seconds. Pasdoc parses and processes every unit, generates documentation for it and additionally writes a cache file for each unit in pasdoc-cache/ subdirectory. Now I change the source code of only *one* unit and I want to generate documentation for my units once again. If I did not use a cache, this would take again about 43 seconds. But, since I'm using a cache, when I run pasdoc for the second time it needs only to parse and process one unit, and information about the rest of 76 units is obtained from the cache. And generating documentation takes only 3 seconds. 3 seconds is of course a lot faster than 43 seconds.

Some notes:

Old issues:

CacheOption (last edited 2007-10-28 22:57:10 by localhost)