JCacheCallback: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
Line 20: | Line 20: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheCallback | category=JCacheCallback | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> |
Latest revision as of 01:22, 25 March 2017
JCacheCallback is a concrete cache handler. It caches and returns the output and results of callback functions.
Defined in
libraries/joomla/cache/handler/callback.php
Methods
Method name | Description |
---|---|
call | Executes a cacheable callback if not found in cache else returns cached output and result |
get | Executes a cacheable callback if not found in cache else returns cached output and result |
Importing
jimport( 'joomla.cache.handler.callback' );
Examples
Code Examples