WireSaveableItems::getFresh()

Load and return a fresh instance of an item from the database, bypassing any cache

The returned item is not added to any collection or cache.

Available since version 3.0.267.

Usage

$saveable = $wireSaveableItems->getFresh($key);

Arguments

NameType(s)Description
$keyint string

Item ID (int) or name (string)

Return value

Saveable null

Returns the item or null if not found


WireSaveableItems methods and properties

API reference based on ProcessWire core version 3.0.268