JCacheCallback: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JCacheCallback}}
===Define... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
JCacheCallback is a concrete cache handler. It caches and returns the output and results of callback functions. | |||
===Defined in=== | ===Defined in=== | ||
| Line 18: | Line 15: | ||
|Executes a cacheable callback if not found in cache else returns cached output and result | |Executes a cacheable callback if not found in cache else returns cached output and result | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.handler.callback' );</source> | <source lang="php">jimport( 'joomla.cache.handler.callback' );</source> | ||
===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