RebuildPathCache Class
- Last UpdatedDec 15, 2025
- 2 minute read
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
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellRebuildPathCache
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
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
| Name | Description | |
|---|---|---|
| RebuildPathCache |
Properties
| Name | Description | |
|---|---|---|
| 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.