Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to get a list of the Confluence pages in the and their respective spaces where the Cache for Confluence app is used.

...

Usage information from the Macro Usage option in the Confluence Administration section:

Navigate to Confluence's Cog wheel > General configuration

...

> Administration > Macro Usage:
Image Modified

...

Image Added

You can see all the macro usage information like the number of pages (link redirecting respective pages) that are using the app in the Macro Usage section as shown:
Image Modified

Usage information using SQL using SQL queries:

Connect to the Database Confluence database and run the following database query:

Code Block
themeMidnight
Select CONTENT.Title, CONTENT.SpaceID from CONTENT, BODYCONTENT 
WHERE PREVVER IS NULL AND (CONTENT.CONTENTTYPE = 'PAGE' OR CONTENT.CONTENTTYPE = 'BLOGPOST')
 AND CONTENT.CONTENTID = BODYCONTENT.CONTENTID
 AND (BODYCONTENT.BODY like '%<ac:structured-macro ac:name="cache"%');

...

If the query returns any records, it indicates that the Cache the Cache for Confluence app is being used. The above query gives the a result as shownsimilar to:
Image RemovedImage Added

Please test
Info

It is recommended to: 

  • Test the above queries in the a test environment database. It may take The time taken to provide get the results , is based on the number of pages where the macro has been used.
  • Suggest to run Run the queries query in the off-business hours to reduce any impact caused due to the run time of the query.