Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I would like to script the process to clear the rest cache on the \rest\admin page after I do a start/stop with the AGSSOM.exe provided on arcscripts. Is it typical to have to clear the cache after creating new services or start/stop-ing services. We seem to have to. Thanks.

share|improve this question
Actually we will be adding new updating the feature class that the mapping service points to. –  Justin Apr 7 '11 at 17:07

3 Answers 3

You can build the URL using these instructions on the ArcGIS Server Blog then simply call the URL from your script.

share|improve this answer
We are not at 10 yet but this looks nice. Thanks. –  Justin Apr 7 '11 at 17:15

You should clear the cache if you create or remove a service. However you should not need to when you just start or stop a service. Here is the esri documentation:


share|improve this answer
You should clear the cache if you've updated the MXD between stop and start. –  mwalker Apr 7 '11 at 15:40
We are updating the feature class that the mxd sources. Currently we have the cache to be cleared every 30 min. I read that this may slow down services. Now that I think about it the reason we were clearing so often is because someone said the cache gets full due to requests but that doesn't seem to square since the cache is based on sources and settings rather than requests to the endpoints. Perhaps I can have it clear at a set time each day..after we run our scripts to update. Any thoughts are most welcome. –  Justin Apr 7 '11 at 17:13

build a script to open the URL above and add it to the windows task manager

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.