I have a custom app that is scanning an external database every 45 minutes. If this app finds new data, it will add a document and child documents to my Umbraco instance via the webservice. If it finds data has expired, it will delete related documents and child documents via the webservice.
The problem I'm having is that although the data is deleted, it seems to be stuck in the cache. Is there a way to remotely call the "Republish Entire Site" or am I doing something wrong app. design wise?
Using a webservice should not be a problem at all, I use them myself for adding/deleting or updating content as well.
How exactly are you creating document in the webservice?
You also might want to check the permissions. Often if the cache is not updated, it has something to do with a permission-issue. Check, Double-check permissions.
I'm submitting the documentCarrier via the documentServiceSoapClient. I don't belive this is a permissions issue because I can run the "republish entire site" from the control panel just fine.
// Create Document UMBRACO.documentCarrier umbCarrier = new UMBRACO.documentCarrier();
Sorry, I didn't read your post right. I can't say that I have implemented Web services for this purpose calling Umbraco. So, not sure what the process would be. Sorry I couldn't be of more help.
Call 'Republish Entire Site' remotely?
Hey Guys,
I have a custom app that is scanning an external database every 45 minutes. If this app finds new data, it will add a document and child documents to my Umbraco instance via the webservice. If it finds data has expired, it will delete related documents and child documents via the webservice.
The problem I'm having is that although the data is deleted, it seems to be stuck in the cache. Is there a way to remotely call the "Republish Entire Site" or am I doing something wrong app. design wise?
Thanks!
Hi,
Using a webservice should not be a problem at all, I use them myself for adding/deleting or updating content as well.
How exactly are you creating document in the webservice?
You also might want to check the permissions. Often if the cache is not updated, it has something to do with a permission-issue. Check, Double-check permissions.
HTH,
Peter
Hi Matt,
did you give the following a try?
Cheers,
Nik
Hi Peter,
I'm submitting the documentCarrier via the documentServiceSoapClient. I don't belive this is a permissions issue because I can run the "republish entire site" from the control panel just fine.
// Create Document
UMBRACO.documentCarrier umbCarrier = new UMBRACO.documentCarrier();
// Add Properties
*snipped*
// Submit Document
UMBRACO.documentServiceSoapClient umbServiceClient = new NTREIS_Umbraco_Import.UMBRACO.documentServiceSoapClient();
intNewDocumentId = umbServiceClient.create(umbCarrier, ConfigurationSettings.AppSettings["UmbracoUser"].ToString(), ConfigurationSettings.AppSettings["UmbracoPassword"].ToString());
Hi Nik,
I belive that's what I want to call remotely. Any ideas?
Sorry, I didn't read your post right. I can't say that I have implemented Web services for this purpose calling Umbraco. So, not sure what the process would be. Sorry I couldn't be of more help.
Thanks,
nik
I don't know if there's an existing way, but you could always write your own webservice that calls the method nik suggested.
is working on a reply...