Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/ICookedPackageWriter
Description
Called during CookByTheBookFinished. Remove Ops from the Oplog that have not been referenced recently and should be removed to save space in the oplog and in artifacts that cache data about packages.
| Name | UpdateLastReferenceDateAndPruneStaleOps |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/PackageWriter.h |
| Include Path | #include "Serialization/PackageWriter.h" |
void UpdateLastReferenceDateAndPruneStaleOps
(
UE::Cook::Artifact::FUpdateOplogPackagesContext & OplogContext
)
Parameters
| Name | Remarks |
|---|---|
| OplogContext | Information that describes which packages were cooked or their previously cooked op inspected (by e.g. incremental cook) in the current cook. The PackageWriter should update the LastReferencedDate for these packages before checking for ops that have not recently been referenced. |