Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
On UmbracoContext you have the option to use the ContentCache but is there any way to do this with ApplicationContext?
I have a Hangfire background task that don't have access to a httpcontext so i can't make a new UmbracoContext this way.
I know that there is the ContentService but this does not read from cache.
So hopefully somebody has any idea to read data from de contentcache so query publishedcontent
Thanks.
+1 to this. there are few bits of info out there on this and I am maintaining an older site that chews way too many resources for what it is doing (everything is being done through the contentService).
this can help
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/93790-access-umbracocontext-in-hangfire
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
UmbracoContentCache & Hangfire backgroundtask
On UmbracoContext you have the option to use the ContentCache but is there any way to do this with ApplicationContext?
I have a Hangfire background task that don't have access to a httpcontext so i can't make a new UmbracoContext this way.
I know that there is the ContentService but this does not read from cache.
So hopefully somebody has any idea to read data from de contentcache so query publishedcontent
Thanks.
+1 to this. there are few bits of info out there on this and I am maintaining an older site that chews way too many resources for what it is doing (everything is being done through the contentService).
this can help
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/93790-access-umbracocontext-in-hangfire
is working on a reply...