Permissions to clear cache?

Joseph Huddleston asked on December 17, 2019 20:35

What is the bare minimum security I can grant users to give them the ability to clear cache?

Correct Answer

Roman Hutnyk answered on December 18, 2019 13:25

Which cache you'd like to clear? All?

Kentico, by default, provides this functionality in the System application which is, if I'm not mistaken, accessible only for global admin.

You might build your custom page that will do the same, but you'll be able configure access to it by role and/or user.

Keep in mind clearing cache completely is not good for production instances as it slows down the system for a couple requests.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on December 20, 2019 20:13

Only users assigned with the Global Administrator privilege level have access to that page. So unfortunately, they'd need to be a global admin. I'd follow Roman's suggestion and simply create a custom webpart or page with roles assigned to it which would do the same thing.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 27, 2019 11:02

Or, you can create a custom module/web part/page and use the API to clear the cache - e.g. add a button for the users and the button click will clear the cache. Use with caution!

0 votesVote for this answer Mark as a Correct answer

Joseph Huddleston answered on January 2, 2020 21:03

Thanks, I will look into the custom page route available to specific roles.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.