# US 2014/0207825 A1 · System, method and computer program product for efficient caching of hierarchical items

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0207825 A1
- Document ID: US20140207825A1
- Status: Published application
- Kind: A1
- Application number: 14/223,785
- Filed: 2014-03-24
- Published: 2014-07-24
- Earliest claimed: 2011-03-30
- Assignees: Open Text Corporation
- Applicants: Open Text S.A.
- Inventors: Adison Hana Wongkar; Shaival Gupta
- Web page: https://patentgrep.com/patent/US20140207825A1

## CPC

- H04L 63/0281: {Proxies}
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/2246: {Trees, e.g. B+trees}
- H04L 7/0008: {Synchronisation information channels, e.g. clock distribution lines}
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments disclosed herein provide a “lazy” approach in caching a hierarchical navigation tree with one or more associated permission trees. In one embodiment, only a portion of a cached permission tree is updated. One embodiment of a method may comprise determining whether a dirty node exists by comparing tree timestamps of the permission tree and the master tree. If the tree timestamp of the master tree is temporally more recent than the tree timestamp of the permission tree, the permission tree has a dirty node and the method may operate to check node timestamps of the master and permission trees. This process may be repeated until the dirty node is found, at which time a portion of the permission tree associated with the dirty node may be reconstructed, rather than the entire permission tree itself, thereby eliminating or significantly reducing access time to the cached permission tree.

## Claims

### Claim 1

A method of caching hierarchical items in a network environment, the method comprising:
in a hierarchical navigation tree having nodes representing hierarchical items of a web site, each node in the hierarchical navigation tree having a tree timestamp and a node timestamp, a server computer where the hierarchical navigation tree is cached performing:
in response to a change to the hierarchical navigation tree, identifying dirty nodes in the hierarchical navigation tree that are affected by the change, wherein the tree timestamp and the node timestamp are used in the identifying; and
rebuilding a portion of the hierarchical navigation tree containing the dirty nodes without alternating all the nodes in the hierarchical navigation tree.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
associating the hierarchical navigation tree with one or more permission trees, each permission tree of the one or more permission trees having a set of nodes representing access restriction of a group of users to the web site.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
caching the hierarchical navigation tree and the one or more permission trees in a hierarchical cache on the server computer.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
tracking a temporal point in time when each node in the hierarchical navigation tree was last updated using the node timestamp.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the change represents adding a node, deleting a node, reordering a node, re-permissioning a node, de-permissioning a node, re-parenting a node, or editing a node.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
in response to a request from a user, updating a portion of a permission tree associated with the user, the portion of the permission tree containing dirty nodes in comparison to corresponding nodes in the hierarchical navigation tree.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the dirty nodes in the portion of the permission tree are determined by:
comparing a root tree timestamp of the hierarchical navigation tree with a root tree timestamp of the permission tree;
if the root tree time stamp of the hierarchical navigation tree is more recent than the root tree timestamp of the permission tree, comparing node time stamps of each node in the permission tree with node time stamps of corresponding nodes in the hierarchical navigation tree; and
if a node time stamp for a node in the hierarchical navigation tree is not more recent than a node time stamp for a corresponding node in the permission tree, comparing a tree timestamp for the node in the hierarchical navigation tree with a tree timestamp for the corresponding node in the permission tree.

### Claim 8

A computer program product comprising at least one non-transitory computer readable medium storing instructions translatable by a server computer where a hierarchical navigation tree is cached, the hierarchical navigation tree having nodes representing hierarchical items of a web site, each node in the hierarchical navigation tree having a tree timestamp and a node timestamp, the instructions when translated by the server computer cause the server computer to perform:
in response to a change to the hierarchical navigation tree, identifying dirty nodes in the hierarchical navigation tree that are affected by the change, wherein the tree timestamp and the node timestamp are used in the identifying; and
rebuilding a portion of the hierarchical navigation tree containing the dirty nodes without alternating all the nodes in the hierarchical navigation tree.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the instructions when translated by the server computer further cause the server computer to perform:
associating the hierarchical navigation tree with one or more permission trees, each permission tree of the one or more permission trees having a set of nodes representing access restriction of a group of users to the web site.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the instructions when translated by the server computer further cause the server computer to perform:
tracking a temporal point in time when each node in the hierarchical navigation tree was last updated using the node timestamp.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the change represents adding a node, deleting a node, reordering a node, re-permissioning a node, de-permissioning a node, re-parenting a node, or editing a node.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein the instructions when translated by the server computer further cause the server computer to perform:
in response to a request from a user, updating a portion of a permission tree associated with the user, the portion of the permission tree containing dirty nodes in comparison to corresponding nodes in the hierarchical navigation tree.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the dirty nodes in the portion of the permission tree are determined by:
comparing a root tree timestamp of the hierarchical navigation tree with a root tree timestamp of the permission tree;
if the root tree time stamp of the hierarchical navigation tree is more recent than the root tree timestamp of the permission tree, comparing node time stamps of each node in the permission tree with node time stamps of corresponding nodes in the hierarchical navigation tree; and
if a node time stamp for a node in the hierarchical navigation tree is not more recent than a node time stamp for a corresponding node in the permission tree, comparing a tree timestamp for the node in the hierarchical navigation tree with a tree timestamp for the corresponding node in the permission tree.

### Claim 14

A system, comprising:
a server computer storing a hierarchical navigation tree, the hierarchical navigation tree having nodes representing hierarchical items of a web site, each node in the hierarchical navigation tree having a tree timestamp and a node timestamp, the server computer configured to perform:
in response to a change to the hierarchical navigation tree, identifying dirty nodes in the hierarchical navigation tree that are affected by the change, wherein the tree timestamp and the node timestamp are used in the identifying; and
rebuilding a portion of the hierarchical navigation tree containing the dirty nodes without alternating all the nodes in the hierarchical navigation tree.

### Claim 15 (depends on 14)

The system of claim 14, wherein the server computer is further configured to perform:
associating the hierarchical navigation tree with one or more permission trees, each permission tree of the one or more permission trees having a set of nodes representing access restriction of a group of users to the web site.

### Claim 16 (depends on 15)

The system of claim 15, wherein the hierarchical navigation tree and the one or more permission trees are cached in a hierarchical cache on the server computer.

### Claim 17 (depends on 14)

The system of claim 14, wherein the server computer is further configured to perform:
tracking a temporal point in time when each node in the hierarchical navigation tree was last updated using the node timestamp.

### Claim 18 (depends on 14)

The system of claim 14, wherein the change represents adding a node, deleting a node, reordering a node, re-permissioning a node, de-permissioning a node, re-parenting a node, or editing a node.

### Claim 19 (depends on 14)

The system of claim 14, wherein the server computer is further configured to perform:
in response to a request from a user, updating a portion of a permission tree associated with the user, the portion of the permission tree containing dirty nodes in comparison to corresponding nodes in the hierarchical navigation tree.

### Claim 20 (depends on 19)

The system of claim 19, wherein the dirty nodes in the portion of the permission tree are determined by the server computer by:
comparing a root tree timestamp of the hierarchical navigation tree with a root tree timestamp of the permission tree;
if the root tree time stamp of the hierarchical navigation tree is more recent than the root tree timestamp of the permission tree, comparing node time stamps of each node in the permission tree with node time stamps of corresponding nodes in the hierarchical navigation tree; and
if a node time stamp for a node in the hierarchical navigation tree is not more recent than a node time stamp for a corresponding node in the permission tree, comparing a tree timestamp for the node in the hierarchical navigation tree with a tree timestamp for the corresponding node in the permission tree.
