Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:lscwp:api [2019/03/27 20:09]
Lisa Clarke [Functions]
litespeed_wiki:cache:lscwp:api [2020/04/30 02:57]
Joshua Reynolds Added advice on API transition to v3
Line 87: Line 87:
 ===== API ===== ===== API =====
 ==== Functions ==== ==== Functions ====
 +**This is only valid for v.2 of LSCWP since with v.3 all API functions have been replaced with hooks and the previous hooks have new names.
 +For assistance with migrating from v.2 to the refactored v.3 API please refer to the comments at [[https://​github.com/​litespeedtech/​lscache_wp/​blob/​master/​src/​api.cls.php#​L51|src/​api.cls.php under the init() function]] which has side-by-side comparisons & even lists hooks registered elsewhere.
 +See the [[https://​docs.litespeedtech.com/​lscache/​lscwp/​api/​|LSCWP v3 API documentation]] if starting new.
 +**
 +
 These functions are found in ''​plugins/​litespeed-cache/​inc/​api.class.php''​ and may be used in any hook point prior to the ''​shutdown''​ hook point. These functions are found in ''​plugins/​litespeed-cache/​inc/​api.class.php''​ and may be used in any hook point prior to the ''​shutdown''​ hook point.
  
  • Admin
  • Last modified: 2020/11/14 15:31
  • by Lisa Clarke