Comments (4)
Updated task to work with WP-CLI Clear OPcache:
# Clear OPcache
namespace :opcache do
desc 'Clear OPcache'
task :clear_cache do
on roles(:app) do
within fetch(:release_path) do
execute :wp, "plugin activate wp-cli-clear-opcache --quiet"
execute :wp, "opcache clear"
end
end
end
end
after 'deploy:finishing', 'opcache:clear_cache'
from capistrano-wearerequired.
See https://github.com/wearerequired/wp-cli-clear-opcache for a possible solution that could be combined with this.
The capistrano task would only need to execute this WP-CLI command.
from capistrano-wearerequired.
I think we should run this task only if set :wp_clear_opcache, true
is set. This would avoid a failure during deploy if the plugin isn't installed.
from capistrano-wearerequired.
Agreed.
from capistrano-wearerequired.
Related Issues (20)
- Add deploy task to update WordPress translations
- Slackistrano: Add additional class to output more data
- Add task to clear composer cache HOT 6
- Add capistrano mailer used for TTSS projects HOT 2
- Slackistrano: Support custom icons for notifications HOT 3
- Add task to cleanup old releases HOT 2
- Don't run WP translations tasks if `:wp_languages` isn't set
- Rename project to capistrano-wearerequired HOT 2
- Merge both custom classes HOT 9
- Give flexibility on which username is show on deployment
- Update WP-CLI commands to install translations HOT 2
- Release 1.2.0
- Use raise_on_non_zero_exit: false for wp command return error
- Unhelpful error messages when installing languages HOT 8
- Skip Slack notifications when there's no config for it HOT 3
- Release 1.3.0 HOT 1
- Update editorconfig for better Markdown support HOT 1
- Performance: Don't loop over wp_languages when installing translations
- Update compatibility with Slackistrano HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-wearerequired.