How can I cache the operations on the admin content overview per user? The admin/content view page gets cached, but the operations column is different for the various users. When a user visits the page after the cache is cleared, their operations are correct. Another user, with the same role, may have different access to other nodes, but the result of the first user is shown =&gt; this leads to unwanted, in access denied resulting edit buttons.
I installed Views Custom Cache Tags and set the cache tag to user:[user:id], but it didnt work (looking at the module I'd guess it supports tokens).
How can I set that the output of admin/content is cached per user? I dont want to completely disable the cache for that view.
This is not a cache tag issue. You need a cache context.

You can use a contextual filter for the user, then Views would add the cache context automatically.

Another option is to add the context to the render array of the View:

function mymodule_views_pre_render($view) {
  if ($view-&gt;id() == 'content') {
    $view-&gt;element['#cache']['contexts'][] = 'user';
  }
}


The cache context user.permissions is used by default in drupal caching. If this doesn't give you the variations you need in cache use the more general user context. Then for each user a new version of the View is cached, which will obviously use more database space.