Clearing your SnipEx Cache - and CFLib SnipEx Update

This post is more than 2 years old.

While working on some bugs in the CFLib SnipEx server, Mark Drew sent me a great tip on how to clear the cache in CFEclipse. Right now it is a manual process, but Mark will be adding a refresh option to the UI soon. So to clear your SnipEx cache, drop down to the command line and....

  1. Change to your Eclipse workspace. Mine was at /Users/ray/Documents/workspace
  2. Change to .metadata/.plugins/org.cfeclipse.cfml/snipex
  3. Delete all XML files
  4. Restart Eclipse

That's it. During development it makes sense to just keep a window open there so you can do this a bit more quicker. (By development I mean if you are working on your own SnipEx server.)

So CFLib has had some issues with SnipEx, mainly with UDFs that don't work well in the XML feed. I've been removing the UDFs temporarily and this morning I just removed another another one. If you have trouble loading a library, please clear your cache first, then try again, and let me know.

p.s. Now that I've got a nice XML version of CFLib, my next "for fun" project will be an AIR client for CFLib!

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Randy posted on 7/16/2007 at 6:29 PM

I just figured this out over the weekend too. I did not read the directions to thoroughly before setting up the snipex server, so it wasn't working correctly. I ended up doing a search for the snipex server name or something inside the workspace directly, deleted those files and to my suprise it was working when I restarted cfeclipse. Pretty darn neat how it works. I connected CFLib and it worked great too.

-Randy

Comment 2 by Mark Drew posted on 7/16/2007 at 7:31 PM

you dont need to restart Eclipse, you can just click the refresh snippets icon and it will do the same thing.

I have added (in the code, not a release yet) a dialog that asks you if you want to delete your snipex cache too when you click the refresh button... so that should help.

As a note, I have also started a snipex mailinglist over at google: http://groups.google.com/gr...

Comment 3 by Raymond Camden posted on 7/16/2007 at 7:34 PM

Nice, thanks for the clarification there. Certainly the 'restart eclipse' part was the slowest, so that makes things nicer!