Skip to content
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

Clear Cache #3835

Closed
JohnDeery opened this issue Mar 15, 2013 · 5 comments
Closed

Clear Cache #3835

JohnDeery opened this issue Mar 15, 2013 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@JohnDeery
Copy link

A simple plugin that deletes all of the folders inside of /tmp. Only appears for SuperUser in the top menu. Useful for when you're developing new plugins to make sure you're seeing the most recent version of everything.

It does a simple check of the $_SERVER['OS'] variable to determine which remove command to run. It was developed on windows hosting, so please test and let me know if the deletion script needs to change for linux/other hosting platforms besides apache.

Also, it doesn't take you to a page, it just clears the cache and sends you right back to where you were when you clicked the link, so if you don't get an error, that means it worked.
Keywords: clear, cache, third-party-plugin

@JohnDeery
Copy link
Author

Attachment: ClearCache Plugin
ClearCache.zip

@halfdan
Copy link
Member

halfdan commented Mar 16, 2013

Hi John,
thank you for the submission. Quick code review:

  • Language file cannot be loaded since the directory must be named in lower case. (lang instead of Lang)
  • You might want to remove the commented code in Controller.php
  • There is a "_notes" folder in the .zip, not sure what it is for.

Since we moved to Github it would be great if you could publish your plugin there. This might encourage people to contribute.

@JohnDeery
Copy link
Author

Thanks for the comments/tips. I changed the language folder, removed the commented code and the _notes folder... Dreamweaver stuff, gone.

I'm in the process of adding the files to GitHub.

@JohnDeery
Copy link
Author

Code is located at [https://github.com/JohnDeery/piwik-clearcache-plugin]

@mattab
Copy link
Member

mattab commented Feb 6, 2014

Along with the Piwik 2.0 release and new design for Piwik, we have also launched the official Plugins Marketplace to let any developer share their work to the thousands of Piwik users worldwide.

Maybe you'd like to publish your plugin there?

In any case, keep up the good work! Cheers.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants