• Hi there,

    first of all, many thanks for the amazing work on this plugin!!

    …I noticed a strange behaviour in my install: If I navigate my admin area with the user role editor, the “Delete Cache”-button doesn’t show up, except if on edit.php screens. I investigated it further and found out, that the is_archive()-call in wpsc_admin_bar_render() inside wp-cache.php has a false positive. Anyways, it seems like this block of code is intended only for the Admin Bar on the frontend, right?

    Now aside from this small ‘bug’, I would appreciate it very much to have a filter to allow the display of the “Delete Cache”-button also on the admin side for other user groups than administrators. For now, I wrote my own little plugin that takes care of that.

    All the best!

    • This topic was modified 7 years, 1 month ago by Rasso Hilber.
Viewing 1 replies (of 1 total)
  • Saša

    (@stodorovic)

    Thank you for reporting this issue. I’ll check how we can improve function wpsc_admin_bar_render. Hook admin_bar_menu triggers on frontend and admin requests, so we need better “conditionals”.

    I think that we should create new capability (eg. wpsc_delete_cache) and you could add it to some user. It seems as the best solution.

Viewing 1 replies (of 1 total)

The topic ‘‘Delete Cache’ Admin Bar Item weird behaviour’ is closed to new replies.