JCachePage/1.5
From Joomla! Documentation
< JCachePage(Difference between revisions)
(Bulk upload by Doxiki2) |
m (→See also: fixing link to API) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JCachePage== | ||
| + | ===Description=== | ||
| + | {{Description:JCachePage}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JCachePage|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JCachePage|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JCachePage::_makeId/1.5|_makeId]] | |[[JCachePage::_makeId/1.5|_makeId]] | ||
|Generate a page cache id. | |Generate a page cache id. | ||
|- | |- | ||
| + | |public | ||
|[[JCachePage::_noChange/1.5|_noChange]] | |[[JCachePage::_noChange/1.5|_noChange]] | ||
|There is no change in page data so send a not modified header and die gracefully. | |There is no change in page data so send a not modified header and die gracefully. | ||
|- | |- | ||
| + | |public | ||
|[[JCachePage::_setEtag/1.5|_setEtag]] | |[[JCachePage::_setEtag/1.5|_setEtag]] | ||
|Set the ETag header in the response. | |Set the ETag header in the response. | ||
|- | |- | ||
| + | |public | ||
|[[JCachePage::get/1.5|get]] | |[[JCachePage::get/1.5|get]] | ||
|Get the cached page data. | |Get the cached page data. | ||
|- | |- | ||
| + | |public | ||
|[[JCachePage::store/1.5|store]] | |[[JCachePage::store/1.5|store]] | ||
|Stop the cache buffer and store the cached data. | |Stop the cache buffer and store the cached data. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/cache/handler/page.php | ||
| + | * '''Extends''' [[JCache/1.5|JCache]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.handler.page' );</source> | <source lang="php">jimport( 'joomla.cache.handler.page' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JCachePage''' on [http://api.joomla.org/1.5/Joomla-Framework/Cache/JCachePage.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JCachePage source code''' on [[jframework15:cache/handler/page.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Cache/1.5|Cache]] | ||
| + | * [[JCachePage|Other versions of JCachePage]] | ||
| + | {{SeeAlso:JCachePage}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JCachePage|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JCachePage|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 50: | Line 55: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCachePage]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCachePage]]</noinclude> | ||
Latest revision as of 14:15, 13 February 2013
[edit]
JCachePage
[edit] Description
JCachePage is a concrete cache handler. It caches and returns the body of the page. [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | _makeId | Generate a page cache id. |
| public | _noChange | There is no change in page data so send a not modified header and die gracefully. |
| public | _setEtag | Set the ETag header in the response. |
| public | get | Get the cached page data. |
| public | store | Stop the cache buffer and store the cached data. |
- Defined in libraries/joomla/cache/handler/page.php
- Extends JCache
[edit] Importing
jimport( 'joomla.cache.handler.page' );
[edit] See also
-
JCachePage on api.joomla.org
-
JCachePage source code on JoomlaCode
-
Subpackage Cache
- Other versions of JCachePage
SeeAlso:JCachePage [Edit See Also]
[edit] User contributed notes
<CodeExamplesForm />