×

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

  • US 9,183,241 B2
  • Filed: 03/24/2014
  • Issued: 11/10/2015
  • 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:

  • performing, by a server computer in the network environment;

    caching a copy of a hierarchical navigation tree, the cached copy of the hierarchical navigation tree having nodes representing hierarchical items of a web site, each node in the cached copy of the hierarchical navigation tree having a tree timestamp and a node timestamp;

    in response to a change to a first node in the cached copy of the hierarchical navigation tree, updating the tree timestamp and the node timestamp of a parent node of the first node and updating the tree timestamp of any upstream parent node of the parent node of the first node in the cached copy of the hierarchical navigation tree such that only a portion of the cached copy of the hierarchical navigation tree affected by the change to the first node is updated;

    comparing the tree timestamp of a root node of the cached copy of the hierarchical navigation tree with a tree timestamp of a root node of a cached copy of a permission tree;

    if the tree timestamp of the root node of the cached copy of the hierarchical navigation tree is more recent than the tree timestamp of the root node of the cached copy of the permission tree, comparing the node timestamp of each node in the cached copy of the hierarchical navigation tree and the node timestamp of each node in the cached copy of the permission tree until a dirty node in the cached copy of the permission tree is found;

    constructing the dirty node in the cached copy of the permission tree relating to the change to the first node in the cached copy of the hierarchical navigation tree; and

    building a portion of the cached copy of the permission tree containing the dirty node by updating the tree timestamp and the node timestamp of the dirty node in the cached copy of the permission tree and traversing the cached copy of the permission tree from the dirty node to the root node of the cached copy of the permission tree to update the tree timestamp of any upstream parent node of the dirty node in the cached copy of the permission tree.

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