CacheMap table
|
dc2447
Joined: 2002-09-22
Posts: 130 |
Posted: Tue, 2006-04-11 18:11
|
|
Just realised that my CacheMap table is 1.4Gb - pretty amazed. Why is this size? Seems large for an average size gallery like ours. |
|

Posts: 8601
lots of items, lots of users, supporting multiple languages.. all these combinations may be cached. you can tune the settings in site admin / performance.
Posts: 130
Thanks but 1.4Gb of cached data? That can't be right? Can it?
Oh and the tuning seems to be
No acceleration — Medium acceleration — High acceleration
Posts: 8601
that's all you see there? you can adjust how long cached data is saved, there is also a button to clear the cache.
1.4GB does sound like a lot.. check how many different userId/itemId combinations you have, and the average size of each entry.
Posts: 130
I'm still on 2.1 rc1
Posts: 14
My CacheMap table died some sort of horrible death last night. Now my gallery won't run at all. I had to drop the table and want to re-add it, but don't know the structure (MySQL).
Posts: 32509
see modules/core/classes/GalleryStorage.schema.tpl
replace DB_TABLE_PREFIX with g2_ and DB_COLUMN_PREFIX with g_.
Posts: 214
Mine is 1.3GB in size - I tweaked something in administration but if it helps reducing the size? I only have around 20 registered users but >112.000 pictures - so what will happen if I include G2 into my postnuke portal getting about 1500 registered users ...
Which hoster offers Terabytes of diskspace?
I have the cacheing time for guests and registered users set to 1hour but I have nearly 350.000 entrys in that table. It seems that there's no "empty cache" command after the hour and the table fills itself up.