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 opcache when installing plugins #8362

Closed
oparoz opened this issue Jul 16, 2015 · 3 comments
Closed

Clear opcache when installing plugins #8362

oparoz opened this issue Jul 16, 2015 · 3 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@oparoz
Copy link

oparoz commented Jul 16, 2015

On PHP 5.5, using PHP-FPM, the gateway becomes unavailable as soon as a plugin is installed, until PHP-FPM is either restarted or the opcache cleared.
No problem with PHP 5.4 + APC.

Would it be possible to add some opcache clearing code to the installer?

@quba
Copy link
Contributor

quba commented Jul 17, 2015

There's already a command to clear all caches. Could you check if it works? If yes, then it should be easy to implement.

@mattab
Copy link
Member

mattab commented Jul 22, 2015

It looks like the cache is already cleared when installing a new plugin: https://github.com/piwik/piwik/blob/master/plugins/CorePluginsAdmin/PluginInstaller.php#L49-50

Maybe it does not work for you. can you try the following:

  • install a new plugin
  • check your server is unavailable
  • run ./console cache:clear in Piwik folder
  • is Piwik now available?

@mattab
Copy link
Member

mattab commented Sep 18, 2015

Should already work. If you still have the problem with 2.14.3 or 2.15.0 beta (http://piwik.org/faq/how-to-update/faq_159/), feel free to re-open

@mattab mattab closed this as completed Sep 18, 2015
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants