Grid editor changes are not reflecting immediately
Hi,
I was watching video tutorial on Customizing TextString Grid Editor and was trying out the samples. After making edits to package.manifest file, I could see that the changes are not reflected in backoffice DataType for Grid Editor. However, after many-many minutes (not sure how much!), I could see that the changes got reflected and could see newly added editor properties.
I assume this is because of the delay in invalidating existing cache and reloading new changes. Is that correct? How can I see the changes instantly after making edits in package.manifest file?
Yes, this is common when developing packages.
To see your changed instantly, bump you ClientDependency version number. This force Umbraco to clear cached items.
Bumping ClientDependency meaning:
In /Config/ClientDependecy.config. increase the version number by 1.
So in the above example, it would be 113321509.
Always do this when you make changes to your package and you want to force clear the cache.
Thanks for the reply. However there should be some config which will be controlling the cache duration interval, right? Do you know where it is? I came across a config element - <UmbracoLibraryCacheDuration> in umbracoSettings.config. Is that the the one which controls the cache duration?
Grid editor changes are not reflecting immediately
Hi,
I was watching video tutorial on Customizing TextString Grid Editor and was trying out the samples. After making edits to package.manifest file, I could see that the changes are not reflected in backoffice DataType for Grid Editor. However, after many-many minutes (not sure how much!), I could see that the changes got reflected and could see newly added editor properties.
I assume this is because of the delay in invalidating existing cache and reloading new changes. Is that correct? How can I see the changes instantly after making edits in package.manifest file?
Any help will be appreciated. Thanks.
Hi Abhilash.
Yes, this is common when developing packages. To see your changed instantly, bump you ClientDependency version number. This force Umbraco to clear cached items.
Bumping ClientDependency meaning:
In /Config/ClientDependecy.config. increase the version number by 1.
So in the above example, it would be 113321509.
Always do this when you make changes to your package and you want to force clear the cache.
Best of luck to you!
Hello Dennis,
Thanks for the reply. However there should be some config which will be controlling the cache duration interval, right? Do you know where it is? I came across a config element -
<UmbracoLibraryCacheDuration>
inumbracoSettings.config
. Is that the the one which controls the cache duration?Thanks.
I don't know. I usually just bump the CDF version and that always works!
UmbracoLibraryCacheDuration: This setting controls the media and member cache, so that's probably not any help for you.
Maybe this can help you: http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2015/07/how-to-disable-umbracos-client.html?m=1
Thanks for the reply.
I have had a doubt regarding adding
debug=true
in the config file which got cleared with your link.Thanks.
Thank you Abhilash!
Glad I could help!! :)
Have a great day!!
is working on a reply...