feat: Clean cache command#1394
Conversation
83f2262 to
d52c4ad
Compare
7c59782 to
444977d
Compare
c2dc7b8 to
1041695
Compare
dc31834 to
f5def12
Compare
1041695 to
66296d5
Compare
77f7320 to
aa280da
Compare
34fd55f to
7473bd4
Compare
7b17cc0 to
569ff71
Compare
Provide common interface for cache cleanup, but distribute the real cleanup among the respective destinations
569ff71 to
36fd376
Compare
|
I think the usability of the command could be improved.
|
|
I have tried to improve the situation with the infmration for the execution of the Let me know if there's something more you'd expect. Regarding the size report, there are some considerations we need to be aware of:
I have tried to somehow get advantage of these findings and provide the optimal solution- show metrics for what is fast and provide generic messages. Any other solutions will require certain compromises. |
EditNow the UX of this command is revised! The real issue is enormous cache! Collecting full information about what would be deleted is a haevy work and we simply cannot do it real time. In the end, for the end user it's important what would be deleted! ConfirmationChecking cache at /my/data/dir/.ui5 …
The following cached data will be removed:
• UI5 Framework packages /my/data/dir/.ui5/framework (1 project, 18 libraries, 212 versions)
• Build cache (DB) /my/data/dir/.ui5/buildCache/v0_7 (100.0 KB)
Do you want to continue? (y/N)During cache cleanupIf we now decide to accept purging of the hughe cache, it will take some time cleaning it up. We cannot do anythinbg about it, but simply wait for the fuiles to be deleted. ⠏ UI5 Framework packages …/sap.m/1.52.14/src/sap/m/BarRenderer.js 2.86 sFinal summary✓ Removed UI5 Framework packages (/my/data/dir/.ui5/framework · 1 project, 18 libraries, 212 versions)
✓ Removed Build cache (DB) (/my/data/dir/.ui5/buildCache/v0_7 · 100.0 MB)
Success: Cleaned UI5 Framework packages and Build cache (DB)Hopefully, this is good enough as UX and fast enough, so that developers get feedback what is actually happenning |
|
That's better. On my system it's very fast now: But I think the term I don't really think we need a progress indicator for the deletion process. It is expected to take a while, I would rather not add code just for that. |
dd834e4 to
5863e5f
Compare
5863e5f to
3d761f2
Compare
The command completely cleans the cache by removing the cache files as well as cleaning up the SQLite records.
It does not wipe out the SQLite DB file(s)
JIRA: CPOUI5FOUNDATION-891