Closed (outdated)
Project:
Git Deploy
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2011 at 15:17 UTC
Updated:
15 Mar 2020 at 18:14 UTC
Jump to comment: Most recent
Traversing the 230+ git checkouts in my module folder roughly takes 50 seconds and was being run on nearly every admin page load. Therefor i implemented some caching and of course the performance gain is massive. Check it out!
Note: the diff is huge because of indention changes, try git diff --minimal --patience --color-words after applying to filter that some.
Cache validity is hard-coded to 6hours.
| Comment | File | Size | Author |
|---|---|---|---|
| git_deploy-add-caching.patch | 6.95 KB | eMPee584 |
Comments
Comment #1
blueyed commentedfilemtime(".git/")for/with the cache key, so that it invalidates itself automatically - fstat'ing should be rather cheap. This could be an entry in the module's cache entry.Comment #2
Freso commentedDoes #1511112: git_deploy slows down module install/enable massively solve your issue?
Comment #3
darren oh