[dokuwiki] uncluttering the cache directories

Hi all!

I'm happy with the new directory layout after the last cleanup. The only thing 
I don't like is the _cache directories inside media and pages.

I suggest the following new structure for the data dir:

data/
|-- changes.log
|-- attic/
|-- media/
|-- data/
`-- cache/
    |-- xhtml/
    |-- instructions/
    |-- media/
    |-- locks/          #See my other post on the notify mail patch
    |-- purgefile
    `-- _htcookiesalt

Each of the cache subdirs contain files named after the md5 sum of some data so 
they tend to grow large. To speed up access to the cache files I suggest to add 
16 sub directories to each of these dir named by the first char of the md5 sum.

Example:

data/
`-- cache/
    |-- xhtml/
        |-- 0
        |   |-- 0003d7511306eaf1dc502cd132b93e9e
        |   `-- 00334945f87e0b2079b3a328385f2c7b
        |-- 1
        |-- 2
        |-- 3
        ...
        |-- e
        |-- d
        `-- f

Has anyone a good reason against this? If not I'll just do it ;-)

Andi

Other related posts: