ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Need a way to clear cache for the ionic resources command

Open hikumealan opened this issue 11 years ago • 60 comments

Per conversation with Mike on Slack:

"the cache isn't kept locally this is the resources command works. It uploads the files, generates the images, then sends them back it keeps a small references to what project sent what then when you try to run the command again, it will diff the two images, if nothings changed, it will jsut send the same images back it's not a simple .cache file so to make it rebuild the image, make a small change to the psd, then build it again"

I am receiving 3 corrupt files from the ionic resources command ✓ splash ios Default-667h.png (750x1334) from cache ✓ splash ios Default-736h.png (1242x2208) from cache ✓ splash ios Default-Portrait@2x~ipad.png (1536x2048) from cache

I need a way to rebuild these files without changing the image. Please supply a way of running this command locally on the system or a way to clear the server cache.

hikumealan avatar Sep 09 '15 20:09 hikumealan

+1

TheBosZ avatar Sep 15 '15 20:09 TheBosZ

Hi, on Windows you can clean system temp files with ccleaner tool and ionic resources generates new splash and icons for your app.

Sorry for my english, i am from Chile.

jfcisternasm avatar Sep 18 '15 17:09 jfcisternasm

I am using OS X and I am not sure your method will clear the Ionic cache as this resides on the Ionic servers not your local machine.

hikumealan avatar Sep 18 '15 18:09 hikumealan

@jfcisternasm sorry, that doesn't work because it's Ionic's cache on their server that does it.

TheBosZ avatar Sep 18 '15 18:09 TheBosZ

On osx try using memory clean app.

jfcisternasm avatar Sep 18 '15 18:09 jfcisternasm

This can't be cleared locally as the cache is stored on Ionic's servers.

hikumealan avatar Sep 18 '15 18:09 hikumealan

Any work around? Having similar issue in fedora

introin avatar Oct 06 '15 17:10 introin

The OS doesn't matter. It's cached on Ionic's server. Change the source slightly and re-run the command.

TheBosZ avatar Oct 07 '15 20:10 TheBosZ

That is a poor solution. Which is why I opened this request.

hikumealan avatar Oct 07 '15 21:10 hikumealan

@hikumealan Sorry, I was responding to @introin about the work around.

I agree that it's a poor solution and am hopeful for a better solution.

TheBosZ avatar Oct 07 '15 21:10 TheBosZ

I have changed all splash screen image in resource folder and re run 'ionic resource splash' and it worked [Command name i am writting with memory, check with official guide]

introin avatar Oct 12 '15 06:10 introin

+1

dumparun avatar Nov 07 '15 12:11 dumparun

+1

Remrem84 avatar Nov 12 '15 13:11 Remrem84

+1

iiunknown avatar Nov 12 '15 15:11 iiunknown

+1

Andrew0420 avatar Nov 13 '15 00:11 Andrew0420

+1

lostcowteng avatar Nov 13 '15 01:11 lostcowteng

+1 Image generated from cache seem broken, and no way to clean cache.

sanmaozhao avatar Nov 17 '15 06:11 sanmaozhao

+1

imeoer avatar Nov 18 '15 06:11 imeoer

+1

jvence avatar Nov 19 '15 10:11 jvence

+1

I got in a situation where some of the cached versions of the android icons were empty (0KB) PNGs and the broken cached versions continue to get pulled down.

archy-bold avatar Nov 19 '15 11:11 archy-bold