Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Add task to clear composer cache #3

Closed
grappler opened this issue Dec 7, 2016 · 6 comments
Closed

Add task to clear composer cache #3

grappler opened this issue Dec 7, 2016 · 6 comments
Assignees

Comments

@grappler
Copy link
Contributor

grappler commented Dec 7, 2016

We have had trouble in the past to due to some cache issue with composer. It would be cool to have a task that does it on all three servers when we run into a issue.

it would be even better if the command was bundle exec cap staging composer clear-cache

	desc 'Clear composer cache'
	task :composer_clear_cache do
		on roles(:app) do
			within fetch(:release_path) do
				execute "composer clear-cache"
			end
		end
	end
@grappler
Copy link
Contributor Author

grappler commented Jan 5, 2017

@ocean90 Hättest du Zeit das zu machen?

@ocean90
Copy link
Member

ocean90 commented Jan 6, 2017

@grappler Brauchst du denn wirklich so oft? Schade, dass keine Reaktion auf capistrano/composer#49 kam.

@swissspidy
Copy link
Contributor

Sind die Probleme mit dem Cache darauf zurückzuführen, dass wir Versionen nicht explizit angeben und Composer deshalb manchmal Packages mit einer falschen Version cached? Weil es sollte sonst selten der Fall sein, dass man den Cache löschen muss.

Bezüglich capistrano/composer#49 hilft wohl am ehesten ein PR dort, denn ansonsten ist das Repo ziemlich tot was Maintenance angeht.

@grappler
Copy link
Contributor Author

grappler commented Jan 6, 2017

@ocean90 Das Problem kommt mindestens Einmal im Monat vor bei verschiedenen deployments. Es betrifft hauptsächlich die TTSS server. Bei Cyon kann ich gut mit SSH rein.

@grappler
Copy link
Contributor Author

grappler commented Jan 6, 2017

@swissspidy Es gibt auch offene PR die nicht angeschaut werden.

@grappler
Copy link
Contributor Author

We have the latest version of the plugin but some reason WP thinks we are running an older version. https://prohelvetia.develop.required.ch/wp-admin/network/update-core.php It must be because there is a problem in the zip file which we could fix by clearing the cache.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants