WIKI-741 Improve the performance of PageImpl.getAttachmentsExcludeContent()

Fix description:
* Get attachments by query
* Cache the number of page attachments