-
-
Notifications
You must be signed in to change notification settings - Fork 51
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 handler to clear opcache #38
Add handler to clear opcache #38
Conversation
handlers/main.yml
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
- name: clear opcache | |||
command: drush eval "if (function_exists('apc_clear_cache')) {apc_clear_cache();}if (function_exists('opcache_reset')) {opcache_reset();}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use {{ drush_path }}
rather than rely on a global drush
.
4778b69
to
ce3a6e6
Compare
f910e64
to
ade84ff
Compare
@geerlingguy I've tried, and tried. I don't know why I tried setting |
@mglaman - That's really weird. I know BLT started seeing this issue in Travis CI builds recently: acquia/blt#1336 It seems like it's related to either using Drupal 8.3.0+, or maybe Drush 8.1.10? |
@geerlingguy I wonder if installing |
@mglaman - Yeah; see my latest commit: 3611e53 Tests are running right now, we'll see if that fixes things: https://travis-ci.org/geerlingguy/ansible-role-drupal/builds/223991723 |
@mglaman - Can you rebase this PR? It seems like the fix worked. |
This clears opcache via `drush eval` instead of restarting the webserver or the php-fpm service.
ade84ff
to
5f42653
Compare
@geerlingguy 👍 rebased |
This clears opcache via
drush eval
instead of restarting the webserveror the php-fpm service.
My go at a solution for #35