Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rayyan 46 posts 238 karma points
    Oct 13, 2017 @ 17:40
    Rayyan
    0

    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:

     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?

    Thank you,

  • Brad 69 posts 97 karma points
    Oct 13, 2017 @ 19:08
    Brad
    0

    Why not use the ContentService API instead of manual SQL queries?

  • Rayyan 46 posts 238 karma points
    Oct 13, 2017 @ 19:19
    Rayyan
    0

    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. :)

  • Brad 69 posts 97 karma points
    Oct 13, 2017 @ 19:23
    Brad
    1

    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.

  • Rayyan 46 posts 238 karma points
    Oct 15, 2017 @ 17:43
    Rayyan
    101

    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!

Please Sign in or register to post replies

Write your reply to:

Draft