Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

RebuildPathCache Class

  • Last UpdatedDec 15, 2025
  • 2 minute read
RebuildPathCache Class

Rebuilds the path cache to each element in the PI AF SQL Server database.

This method will rebuild the path cache to each element in the PI AF SQL Server database. The path cache can become outdated after significant data insertions, edits, and/or deletions. Rebuilding the path cache can improve the PI AF server’s performance.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRebuildPathCache

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Reset", "AFPathCache", SupportsShouldProcess = true)]
public class RebuildPathCache : OSICmdletBase
<CmdletAttribute("Reset", "AFPathCache", SupportsShouldProcess := true)>
Public Class RebuildPathCache
	Inherits OSICmdletBase

Dim instance As RebuildPathCache
[CmdletAttribute(L"Reset", L"AFPathCache", SupportsShouldProcess = true)]
public ref class RebuildPathCache : public OSICmdletBase
[<CmdletAttribute("Reset", "AFPathCache", SupportsShouldProcess = true)>]
type RebuildPathCache =  
    class
        inherit OSICmdletBase
    end

The RebuildPathCache type exposes the following members.

Constructors

  NameDescription
Public method
RebuildPathCache

Properties

  NameDescription
Public property
AFServer

Instance of the AFServer

Examples

$afServer | Rebuild-AFPathCache

Where:

$afServer = Get-AFServer -Name "AFServerMachineName"

Rebuilds the path cache to each element in the PI AF SQL Server database.

See Also

TitleResults for “How to create a CRG?”Also Available in