Hello,
I have nodes on Umbraco inserted using sql queries, everything works fine but I have the cache issue.
The new Items that I added to Umbraco still need to press publish to go live.
Looks like the following:
This document is published but is not in the cache
However, I have noticed that when we press publish, Umbraco stores the nodes properties as xml in Umbraco.config, I have tried to do that manually adding an xml for specific node but didn't success to skip pressing the publish button.
Where Umbraco stores the cache along with Umbraco.config? In another word, what happened pragmatically when we press the publish button?
You aren't going to find any easy info on all the SQL queries and steps in order to publish a document. You'd essential need to look at Umbraco's source code and figure out how it does it. But that's completely unnecessary since you're just recreating what ContentService already does.
Solved it, Umbraco stores the cache in umbraco.config ONLY.
I have cashed the nodes manually into it and that makes them fully published, cached and live.
Where Umbraco Stores The Cache?
Hello, I have nodes on Umbraco inserted using sql queries, everything works fine but I have the cache issue.
The new Items that I added to Umbraco still need to press publish to go live.
Looks like the following:
However, I have noticed that when we press publish, Umbraco stores the nodes properties as xml in Umbraco.config, I have tried to do that manually adding an xml for specific node but didn't success to skip pressing the publish button.
Where Umbraco stores the cache along with Umbraco.config? In another word, what happened pragmatically when we press the publish button?
Thank you,
Why not use the ContentService API instead of manual SQL queries?
Good question, but I'm not a developer and I didn't know that the ContentService API is exist before I start my experimental.
Anyway, could you please provide me with some good references to learn it?
But still I need to know what are the changes that the publish button make on the database and the other files. :)
You aren't going to find any easy info on all the SQL queries and steps in order to publish a document. You'd essential need to look at Umbraco's source code and figure out how it does it. But that's completely unnecessary since you're just recreating what ContentService already does.
https://stackoverflow.com/questions/37581391/how-to-update-node-properties-from-a-page-in-umbraco-7-using-razor
https://our.umbraco.org/documentation/reference/management/services/contentservice
http://jamessouth.me/archive/experiments-with-umbracos-icontentservice/
It's really easy to use.
Solved it, Umbraco stores the cache in umbraco.config ONLY. I have cashed the nodes manually into it and that makes them fully published, cached and live.
Thanks Brad for you help!
is working on a reply...