JCachePage/store
From Joomla! Documentation
< API15:JCachePageRevision as of 17:11, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Stop the cache buffer and store the cached data
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<...)
Revision as of 17:11, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Stop the cache buffer and store the cached data
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<...)
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Stop the cache buffer and store the cached data
Template:Description:JCachePage/store
Syntax[edit]
store()
Returns[edit]
boolean True if cache stored
Defined in[edit]
libraries/joomla/cache/handler/page.php
Importing[edit]
jimport( 'joomla.cache.handler.page' );
Source Body[edit]
function store()
{
// Get page data from JResponse body
$data = JResponse::getBody();
// Get id and group and reset them placeholders
$id = $this->_id;
$group = $this->_group;
$this->_id = null;
$this->_group = null;
// Only attempt to store if page data exists
if ($data) {
return parent::store($data, $id, $group);
}
return false;
}
[Edit See Also] Template:SeeAlso:JCachePage/store
Examples[edit]
<CodeExamplesForm />