support multiple commands in one undo/redo history entry
fix undoing of changing the cache size
should be handled as one operation, regardless of the number of entries which have been removed