LLMS_Cache_Helper::get_prefix( string $group )
Retrieve a cache prefix that can be used with WP_Object_Cache methods
Description Description
Using a cache prefix allows simple invalidation of all items with the same prefix simply by updating the prefix.
The "prefix" is microtime(), if we wish to invalidate all items in the prefix group we call the method again with $invalidate=true
which updates the prefix to the current microtime(), thereby invalidating the entire cache group.
Parameters Parameters
- $group
-
(Required) Cache group name.
Return Return
(string)
Source Source
File: includes/class.llms.cache.helper.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |