New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add admin menu button for refresh cache (Trac #2111) #2111
Comments
Milestone changed to |
Milestone changed to |
cash wrote on 41239720-03-06 Brett, Evan, and Mayank: Thoughts on where to put this button in the new admin area? As a button in sidebar or should it get its own page (seems like overkill but so far all sidebar menu items lead to a page)? |
brettp wrote on 41239740-08-02 Somewhere on the settings/advanced page? I don't think it needs to be as prominent to be on every page of the admin area. |
ewinslow wrote on 41240190-09-10 Other option I thought of is dashboard page. I agree that putting it on every page might be overkill. |
trac user mayanks43 wrote on 41240678-08-09 Why not put it as a link beside the activate all and deactivate all links in the plugins advanced menu? |
cash wrote on 41243343-10-15 Okay, three options:
I like settings page as that is where a user goes to turn caching on/off. Other thoughts? |
anirupdutta wrote on 41243409-09-13 well when in development I think its necessary to have a reset cache button at the sidebar.works fine say if you are working on a theme and you forgot to switch off the cache,then a button at the sidebar helps.We can easily have a choice at the plugin settings whether to have it at the sidebar or not.Gives flexibility.Second in the modified version of the developers plugin I wrote,I registered a new admin menu called reset cache along with a tab with little bit of documentation.So plugin authors won't have to write about it and also eases the process of administration for new Elgg admins. |
ewinslow wrote on 41244769-02-11 You may have a point with your suggested use case but I am most definitely against having a configuration option for this. |
Attachment added by trac user mayanks43 on 41249327-06-23: reset_cache.patch |
trac user mayanks43 wrote on 41249339-11-13 Sorry for multiple attachments.... some problem on my network side.... |
trac user mayanks43 wrote on 41249352-07-28 Kindly delete the unnecessary attachments if possible.... |
brettp wrote on 41250221-02-05 Thanks for the patch! The functionality looks good. There are a few issues:
|
cash wrote on 41250507-09-10 The use case for this is as follows:
Right now the conventional wisdom in the forums is to hit the upgrade script and hope for the best. This button gives me an outlet. I think putting it on both of the settings pages is a good idea. Maybe in the future we will have a control panel widget with buttons for reseting cache, running an upgrade, switching the site into developer mode. |
brettp wrote on 41299585-10-02 Let's get this in core before the patch gets too far out of sync. We'll want to move it to the settings pages. |
Milestone changed to |
trac user mayanks43 wrote on 41299590-08-31 This is just a patch... |
Milestone changed to |
trac user Purus wrote on 41732099-06-13 I feel that this button shold be in the Plugins page of Admin section where all the plugins are listed. This gives an easy access to that for a developer. |
Milestone changed to |
Original ticket http://trac.elgg.org/ticket/2111 on 40318879-11-30 by cash, assigned to cash.
Elgg version: 1.7
As a plugin author, I frequently have to give detailed instructions on how to refresh the cache (change plugin order, turn plugin off and then on) when upgrading a plugin.
A button added to the Admin sidebar menu that refreshes the cache solves this.
The text was updated successfully, but these errors were encountered: