Cache total pages of a document in the db.
Add menu for cap deploying