When we use excerpt include macro inside a cache macro, we observed that the cache macro is ignoring the page permissions and displaying the content from the other page where the excerpt macro is(contains permissions).
Steps to reproduce the issue:
Create a page1 with content inside an Excerpt macro. Make sure the page is restricted to another user.
Create a page2 with an Excerpt Include macro inside a cache macro.
Try to access the page2 with the restricted user, even though the page1 is restricted, we can see the content of the page1 in the page2.