BuddyClients Docs

ServiceCache
in package

AbstractYes

Handles caching and retrieval for service components.

Tags
since
1.0.25

Table of Contents

Methods

clear_cache_on_update()  : mixed
Clears the cache for a post.
clear_instance()  : mixed
Unsets an instance from the static cache.
get_instance()  : mixed
Retrieves the cached object for the post ID.

Methods

clear_cache_on_update()

Clears the cache for a post.

public static clear_cache_on_update(string $post_type, int $post_id) : mixed
Parameters
$post_type : string

The post type.

$post_id : int

The ID of the post.

Tags
since
1.0.25

clear_instance()

Unsets an instance from the static cache.

public static clear_instance(mixed $class_key, int $post_id) : mixed
Parameters
$class_key : mixed
$post_id : int

The ID of the service post to remove.

Tags
since
1.0.25

get_instance()

Retrieves the cached object for the post ID.

public static get_instance(mixed $class_key, int $post_id) : mixed

Creates a new instance if no cached object exists.

Parameters
$class_key : mixed
$post_id : int

The ID of the service post.

Tags
since
1.0.25

        
On this page

Search results