JCacheStorageApc/test: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Test to see if the cache storage is available.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JCacheStorageApc/test|Edit Descripto... |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Test to see if the cache storage is available. | Test to see if the cache storage is available. | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 28: | Line 26: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=test | category=test | ||
category=JCacheStorageApc | category=JCacheStorageApc | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Latest revision as of 01:22, 25 March 2017
Description
Test to see if the cache storage is available.
<! removed transcluded page call, red link never existed >
Syntax
test()
Returns
boolean True on success, false otherwise.
Defined in
libraries/joomla/cache/storage/apc.php
Importing
jimport( 'joomla.cache.storage.apc' );
Source Body
function test()
{
return extension_loaded('apc');
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples