×

System, method and computer program product for efficient caching of hierarchical items

  • US 9,674,150 B2
  • Filed: 10/22/2015
  • Issued: 06/06/2017
  • Est. Priority Date: 03/30/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method of caching hierarchical items in a network environment, the method comprising:

  • receiving, by a server machine from a computing device communicatively connected to the server machine, a request for a change to a web site;

    updating, by the server machine, a master tree to reflect the change to the web site, the master tree having nodes representing hierarchical items of the web site and edges representing hierarchical relationships among the hierarchical items, each node of the nodes in the master tree having a tree timestamp and a node timestamp, the updating including updating the tree timestamp and the node timestamp of a first node affected by the change and updating the tree timestamp of any upstream parent node of the first node in the master tree;

    determining, by the server machine, a permission tree affected by the change, the permission tree associated with a user group permitted to view a particular portion of the hierarchical items of the web site, the permission tree having a set of nodes corresponding to the particular portion of the hierarchical items of the web site and representing access restriction of the user group to the particular portion of the hierarchical items of the web site;

    identifying, by the server machine, a dirty node in the permission tree, the identifying including comparing the tree timestamp of a root node of the master tree with a tree timestamp of a root node of the permission tree; and

    constructing, by the server machine, a portion of the permission tree containing the dirty node, the constructing including updating the tree timestamp and the node timestamp of the dirty node and updating the tree timestamp of any upstream parent node of the dirty node in the portion of the permission tree containing the dirty node such that only the portion of the permission tree affected by the change is updated.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×