API16

JCache/setCaching: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Set caching enabled state <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Set caching enabled state
Set caching enabled state


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JCache/setCaching|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JCache/setCaching}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 38: Line 36:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCache/setCaching|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JCache/setCaching}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setCaching
  category=setCaching
  category=JCache
  category=JCache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:21, 25 March 2017

Description

Set caching enabled state


<! removed transcluded page call, red link never existed >

Syntax

setCaching($enabled)
Parameter Name Default Value Description
$enabled $enabled True to enable caching

Returns

void

Defined in

libraries/joomla/cache/cache.php

Importing

jimport( 'joomla.cache.cache' );

Source Body

function setCaching($enabled)
{
        $this->_options['caching'] = $enabled;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples