Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Question : Manual Cache Invalidation #42

Closed senyordiaz closed 6 years ago

senyordiaz commented 6 years ago

Hi, i have questions about manual cache invalidation, are javascript in this link (https://community.adxstudio.com/products/adxstudio-portals/documentation/developers-guide/cache/cache-invalidation-utility/) to do manual cache invalidation still works in this new portal? it doesn't seem to be worked. When i customize portal such as add web form, entity form, or assign web role to the contact does not automatically reflected on the website. I need to reset IIS every time i did customization.

amervitz commented 6 years ago

Please refer to the following documentation for Dynamics 365 portals which replaces the JavaScript bookmark approach you've referenced:

senyordiaz commented 6 years ago

great, thanks a lot

senyordiaz commented 6 years ago

Hi, the link that you gave me working fine, but if i try add HostName in IIS Site Bindings. The link didn't show, only show empty page like this manual cache invalidation not show

I want to try configure web notification, i read in the guide the url must be domain name

amervitz commented 6 years ago

You have to be signed in as a portal administrator to see the clear cache button.

senyordiaz commented 6 years ago

wow, it works, thanks. and about Web Notification, i already configured following document from Microsoft (Self-hosted_installation_guide_for_Portals.pdf). Already added a record in Web Notification URL entity, and check in the web.config too, in the handlers WebNotification.axd. It still not works, is there any other step required? or maybe the file WebNotification.axd, is that file need to be exist in the portal directory? because i think i don't find that file.

amervitz commented 6 years ago

There isn't a physical file for WebNotification.axd, rather it is an HTTP handler registered in the web.config in the path system.webServer/handlers.

Self-hosted_Installation_Guide_for_Portals.pdf is missing information on fully configuring the automatic invalidation process. In addition to creating a Web Notification URL record, there is a configuration needed for specifying the entities which will trigger the WebNotificationPlugin that sends the invalidation requests from the CRM to the Portal. This is done by opening the WebNotification solution, selecting the entities which the plugin will be registered on, moving them to the Send Notifications column, and clicking Save and Publish. This will register a plugin step on each of the selected entities.

image

I've created an Automatic Cache Invalidation wiki page with this information where we can manage additional information on this topic going forward.

senyordiaz commented 6 years ago

thanks for the wiki information but when i opened the Web Notification Solution, nothing came up in Configuration, only show blank white page like this. blank web notification solution

amervitz commented 6 years ago

Try a different/newer web browser and see if that makes a difference.

luccig commented 6 years ago

Yes, it is a browser issue, I had the same a few days ago ant this forced me to upgrade my Firefox.. then it worked

—Luc

On Tue, Nov 21, 2017 at 10:31 AM Alan Mervitz notifications@github.com wrote:

Try a different/newer web browser and see if that makes a difference.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Adoxio/xRM-Portals-Community-Edition/issues/42#issuecomment-346062955, or mute the thread https://github.com/notifications/unsubscribe-auth/AgFLAgbHigOR6lAi8n_CVRSWMMLdLaUkks5s4uzQgaJpZM4Qcs6o .

senyordiaz commented 6 years ago

You're right, when i use firefox it did ask username and password, but it cannot connect, pointing to servername. Finally i use dashboard to display the web notification web resource, it works.

Thanks all