Site logo file
API
Search
Phoca.cz Main Site
Phoca Cart
Phoca Cart Demo
Search
Search
Advanced Search
Projects
Joomla
Phoca Cart
Phoca Gallery
Phoca Download
Classes
AbstractAES
AbstractEvent
AbstractEvent
AbstractEvent
AbstractEvent
AbstractGroupButton
AbstractImmutableEvent
AbstractMenu
AbstractModuleDispatcher
AbstractRenderer
AbstractView
Access
Access
AccessiblemediaField
AccesslevelField
ActionButton
ActionsDropdown
Adapter
AdapterInstance
AddUserCommand
AddUserToGroupCommand
AdminController
AdministratorApplication
AdministratorMenu
AdministratorMenuItem
AdministratorRouter
AdminLanguage
AdminModel
Aes
AesInterface
AfterBindEvent
AfterCheckinEvent
AfterCheckoutEvent
AfterDeleteEvent
AfterExtensionBootEvent
AfterHitEvent
AfterLoadEvent
AfterMoveEvent
AfterPublishEvent
AfterReorderEvent
AfterResetEvent
AfterStoreEvent
AliastagField
ApcuStorage
ApiApplication
ApiController
ApiDispatcher
ApiMVCFactory
ApiRouter
ApiRouter
Application
ApplicationHelper
Argon2idHandler
Argon2iHandler
Asset
AssociationExtensionHelper
AssociationExtensionInterface
Associations
AssociationServiceInterface
AssociationServiceTrait
AtomParser
AtomRenderer
Authentication
Authentication
AuthenticationFailed
AuthenticationFailedExceptionHandler
AuthenticationHelper
AuthenticationResponse
AuthorField
Backgroundfill
Base32
BaseApplication
BaseController
BaseDatabaseModel
BaseLayout
BaseModel
BasicButton
BCryptHandler
BeforeBatchEvent
BeforeBindEvent
BeforeCheckinEvent
BeforeCheckoutEvent
BeforeDeleteEvent
BeforeExtensionBootEvent
BeforeHitEvent
BeforeLoadEvent
BeforeMoveEvent
BeforePublishEvent
BeforeReorderEvent
BeforeResetEvent
BeforeStoreEvent
Behavior
BooleanRule
BootableExtensionInterface
Bootstrap
Brightness
Browser
BufferStreamHandler
Cache
CacheConnectingException
CacheController
CacheController
CacheControllerFactory
CacheControllerFactoryInterface
CacheExceptionInterface
CachehandlerField
CacheStorage
CacheStorageHelper
CachingLanguageFactory
CalendarField
CalendarRule
CallbackController
CallbackLogger
Captcha
CaptchaField
CaptchaRule
Categories
CategoriesView
Category
Category
CategoryFactory
CategoryFactory
CategoryFactoryInterface
CategoryFeedView
CategoryField
CategoryInterface
CategoryNode
CategoryServiceInterface
CategoryServiceTrait
CategoryView
ChainedHandler
ChangeItem
Changelog
ChangeSet
ChangeUserPasswordCommand
CheckboxesField
CheckboxField
CheckEvent
CheckIfRehashNeededHandlerInterface
CheckinCheckout
CheckinCheckoutExceptionHandler
CheckJoomlaUpdatesCommand
CheckUpdatesCommand
ChromestyleField
ClassLoader
CleanCacheCommand
Cli
CliApplication
ClientHelper
CliInput
CliOutput
CliRenderer
CMSApplication
CMSApplicationInterface
CMSHelper
CMSObject
CMSPlugin
CMSWebApplicationInterface
CollectionAdapter
ColorField
ColorProcessor
ColorRule
ColorStyle
ComboField
Component
ComponentAdapter
ComponentDispatcher
ComponentDispatcherFactory
ComponentDispatcherFactory
ComponentDispatcherFactoryInterface
ComponentHelper
ComponentInterface
ComponentlayoutField
ComponentRecord
ComponentRenderer
ComponentsField
Config
ConfirmButton
Console
ConsoleApplication
ContainerAwareToolbarFactory
Content
Content
ContentHelper
ContentHistory
ContenthistoryField
ContentLanguage
ContentlanguageField
ContentType
ContenttypeField
Contrast
ControllerInterface
Cookie
CoreAssetItem
CoreButtonsTrait
CoreContent
Crypt
CryptoCipher
CssIdentifierRule
CssIdentifierSubstringRule
CurlTransport
CustomButton
DaemonApplication
Database
DatabaseAwareTrait
DatabaseconnectionField
DatabaseLogger
DatabaseModelInterface
Date
Date
Debug
DelegatingPsrLogger
DeleteUserCommand
Dispatcher
Dispatcher
DispatcherInterface
DisplayEvent
Document
Document
DocumentRenderer
DownloadSource
DraggableList
Dropdown
DropdownButton
DummyPlugin
EchoLogger
Edgedetect
Editor
EditorField
Email
EmailField
EmailRule
Emboss
EqualsRule
ErrorDocument
ErrorEvent
EventAware
EventAwareInterface
ExceptionHandler
ExistsRule
Extension
ExtensionAdapter
ExtensionDiscoverCommand
ExtensionDiscoverInstallCommand
ExtensionDiscoverListCommand
ExtensionHelper
ExtensionInstallCommand
ExtensionManagerInterface
ExtensionManagerTrait
ExtensionNamespaceMapper
ExtensionRemoveCommand
ExtensionsListCommand
Factory
Factory
FactoryInterface
FeaturedButton
Feed
FeedDocument
FeedEnclosure
FeedEntry
FeedFactory
FeedImage
FeedItem
FeedLink
FeedParser
FeedPerson
FeedRenderer
FieldsServiceInterface
File
FileAdapter
FileField
FileLayout
FilelistField
FilePathRule
Files
FileStorage
FilesystemHelper
FinderIndexCommand
Folder
FolderlistField
FolderPathExistsRule
Form
Form
Form
FormattedtextLogger
FormBehavior
FormBehaviorTrait
FormController
FormFactory
FormFactoryAwareInterface
FormFactoryAwareTrait
FormFactoryInterface
FormField
FormFilterInterface
FormHelper
FormModel
FormModelInterface
FormRule
FormValidateAssetItem
FormView
FrontendlanguageField
FtpClient
GenericDataException
GenericEvent
GetConfigurationCommand
Grayscale
Grid
GroupedlistField
HeadertagField
HeadRenderer
Help
HelpButton
HelperFactory
HelperFactory
HelperFactoryInterface
HiddenField
HtmlDocument
HTMLHelper
HTMLRegistry
HTMLRegistryAwareTrait
HtmlRenderer
HtmlView
Http
HttpBridgePostRequestMethod
HttpFactory
Icons
IdentityAware
Image
ImageDocument
ImageFilter
ImagelistField
ImmutableNodeInterface
ImmutableNodeTrait
InlinehelpButton
InMemoryLogger
Input
InputFilter
Installer
InstallerAdapter
InstallerExtension
InstallerHelper
InstallerScript
IntarrayFilter
IntegerField
InvalidActionException
InvalidParameterExceptionHandler
InvalidRouteExceptionHandler
ItemModel
ItemModelInterface
ItunesRssParser
JGrid
JoomlaSerializer
JoomlaStorage
Jquery
Json
JsonapiDocument
JsonapiRenderer
JsonApiView
JsonDocument
JsonRenderer
JsonResponse
JsonView
KeepaliveAssetItem
LangActiveAssetItem
Language
Language
Language
LanguageAdapter
LanguageFactory
LanguageFactoryInterface
LanguageField
LanguageHelper
LastvisitdaterangeField
LayoutHelper
LayoutInterface
LegacyComponent
LegacyComponentDispatcher
LegacyFactory
LegacyModelLoaderTrait
LibraryAdapter
LibraryHelper
LibraryManifest
LimitboxField
LinkButton
Links
ListField
ListHelper
ListModel
ListModelInterface
ListUserCommand
ListView
Log
LogEntry
Logger
Logger
LoggerRegistry
Mail
MailDisabledException
MailHelper
MailTemplate
Manifest
Mcrypt
MD5Handler
MediaField
MediaHelper
MediaRssParser
MemcachedStorage
Menu
Menu
Menu
MenuFactory
MenuFactoryInterface
MenuField
MenuItem
MenuitemField
MenuRules
MenuType
MessagequeueLogger
MessageRenderer
MetadataManager
MetadataManagerListener
MetasRenderer
MeterField
Microdata
MissingComponentException
ModelInterface
Module
Module
Module
ModuleAdapter
ModuleDispatcher
ModuleDispatcherFactory
ModuleDispatcherFactory
ModuleDispatcherFactoryInterface
ModuleHelper
ModuleInterface
ModulelayoutField
ModuleLayoutRule
ModuleorderField
ModulepositionField
ModuleRenderer
ModulesRenderer
ModuletagField
Multilanguage
MVCComponent
MVCFactory
MVCFactory
MVCFactoryAwareTrait
MVCFactoryInterface
MVCFactoryServiceInterface
MVCFactoryServiceTrait
MysqlChangeItem
NamespaceParserInterface
Negate
Nested
NodeInterface
NodeTrait
NomenuRules
NotAcceptable
NotAcceptableExceptionHandler
NotAllowed
NotAllowedExceptionHandler
NoteField
NotequalsRule
Number
NumberField
NumberRule
ObjectCreateEvent
OnGetApiAttributes
OnGetApiFields
OnGetApiRelation
OpensearchDocument
OpensearchImage
OpensearchUrl
OpenSSL
OptionsRule
OrderingField
OutputController
OutputFilter
PackageAdapter
PackageManifest
PageController
Pagination
PaginationObject
PasswordField
PasswordRule
Patcher
Path
Pathway
Pathway
PHPassHandler
PluginAdapter
PluginHelper
PluginInterface
PluginsField
PluginstatusField
PopupButton
PostgresqlChangeItem
PredefinedlistField
PreloadManager
PreloadManagerInterface
ProcessorInterface
Profiler
ProviderAwareAuthenticationPluginInterface
PublishedButton
PunycodeHelper
RadiobasicField
RadioField
Randval
RandValInterface
RangeField
RawDocument
RawFilter
RedirectStatusField
RedisStorage
RegistrationdaterangeField
Registry
RemoveOldFilesCommand
RemoveUserFromGroupCommand
RendererInterface
RendererInterface
ResourceNotFound
ResourceNotFoundExceptionHandler
Response
Route
RouteHelper
RouteNotFoundException
Router
RouterBase
RouterFactory
RouterFactory
RouterFactoryInterface
RouterInterface
RouterLegacy
RouterServiceInterface
RouterServiceTrait
RouterView
RouterViewConfiguration
RssParser
RssRenderer
Rule
Rules
RulesField
RulesFilter
RulesInterface
RulesRule
SafehtmlFilter
Save
SaveExceptionHandler
ScriptsRenderer
SearchTools
SectionNotFoundException
Select
SendEmail
SendEmailExceptionHandler
SeparatorButton
Session
Session
SessionFactory
SessionGcCommand
SessionhandlerField
SessionManager
SessionMetadataGcCommand
SetConfigurationCommand
SetNewTagsEvent
Sidebar
SiteApplication
SiteDownCommand
SiteMenu
SitePathway
SiteRouter
SiteUpCommand
Sketchy
Smooth
SocketTransport
SodiumCipher
SortableList
SpacerField
SqlField
SqlsrvChangeItem
StandardButton
StandardRules
StateBehaviorTrait
StatefulModelInterface
StatusField
Stdout
Stream
StreamString
StreamTransport
StringController
StringHelper
StylesRenderer
SubformField
SubformRule
SyslogLogger
Table
TableInterface
Tag
TagApiSerializerTrait
TagField
TaggableTableInterface
TaggableTableTrait
TagServiceInterface
TagServiceTrait
TagsHelper
TasksListCommand
TasksRunCommand
TasksStateCommand
Telephone
TelephoneField
TelFilter
TelRule
TemplateAdapter
TemplatestyleField
Text
TextareaField
TextField
TimeField
TimeRule
TimezoneField
Toolbar
Toolbar
ToolbarButton
ToolbarFactoryInterface
ToolbarHelper
Totp
TransitionButton
TransitionField
Transliterate
TransportInterface
Ucm
UCM
UCMBase
UCMContent
UCMType
UiTab
UnknownAssetException
UnparsableImageException
UnsatisfiedDependencyException
UnsetFilter
UnsupportedCacheException
UnsupportedStorageException
Update
Update
UpdateAdapter
UpdateCoreCommand
Updater
UpdateSite
Uri
UrlField
UrlFilter
UrlRule
User
User
User
User
UseractiveField
UserFactory
UserFactoryInterface
UserField
Usergroup
UsergrouplistField
UserGroupsHelper
UserHelper
UserIdRule
UsernameRule
UserstateField
Utility
Version
VersionableControllerTrait
VersionableModelTrait
VersionableTableInterface
Versioning
ViewController
ViewInterface
ViewLevel
W3cLogger
WebApplication
WebAssetAttachBehaviorInterface
WebAssetExceptionInterface
WebAssetItem
WebAssetItemInterface
WebAssetManager
WebAssetManagerInterface
WebAssetRegistry
WebAssetRegistry
WebAssetRegistryAssetChanged
WebAssetRegistryInterface
WincacheStorage
Workflow
WorkflowBehaviorTrait
WorkflowComponentSectionsField
WorkflowconditionField
WorkflowFunctionalityUsedEvent
WorkflowModelInterface
WorkflowPluginTrait
WorkflowServiceInterface
WorkflowServiceTrait
WorkflowStage
WorkflowstageField
WorkflowTransitionEvent
WritableContainerLoader
WritableLoaderInterface
Xml
XmlDocument
XmlRenderer
Methods
__construct
getInstance
getStores
setCaching
getCaching
setLifeTime
contains
get
getAll
store
remove
clean
gc
lock
unlock
_getStorage
getWorkarounds
setWorkarounds
makeId
getPlatformPrefix
addIncludePath
You are here:
Home
Joomla
Cache
⇦
Back to Joomla project (class list)
Class Cache - list of methods
Joomla! Cache base object
Package:
Joomla\CMS\Cache
Copyright:
(C) 2005 Open Source Matters, Inc.
License:
GNU General Public License version 2 or later; see LICENSE.txt
Located at:
Joomla/Cache/Cache.php
Project:
Joomla
Method Summary
public
__construct
(mixed
$options
)
Constructor
Parameters
array
$options
Cache options
Since
1.7.0
Show source code of this method:
__construct Source Code
public static \Joomla\CMS\Cache\CacheController
getInstance
(mixed
$type
=
'output'
, mixed
$options
=
array()
)
Returns a reference to a cache adapter object, always creating it
Parameters
string
$type
The cache object type to instantiate
array
$options
The array of options
Returns
\Joomla\CMS\Cache\CacheController
Since
1.7.0
Deprecated
5.0
Show source code of this method:
getInstance Source Code
public static array
getStores
()
Get the storage handlers
Returns
array
Since
1.7.0
Show source code of this method:
getStores Source Code
public void
setCaching
(mixed
$enabled
)
Set caching enabled state
Parameters
bool
$enabled
True to enable caching
Returns
void
Since
1.7.0
Show source code of this method:
setCaching Source Code
public bool
getCaching
()
Get caching state
Returns
bool
Since
1.7.0
Show source code of this method:
getCaching Source Code
public void
setLifeTime
(mixed
$lt
)
Set cache lifetime
Parameters
int
$lt
Cache lifetime
Returns
void
Since
1.7.0
Show source code of this method:
setLifeTime Source Code
public bool
contains
(mixed
$id
, mixed
$group
=
null
)
Check if the cache contains data stored by ID and group
Parameters
string
$id
The cache data ID
string
$group
The cache data group
Returns
bool
Since
3.7.0
Show source code of this method:
contains Source Code
public mixed
get
(mixed
$id
, mixed
$group
=
null
)
Get cached data by ID and group
Parameters
string
$id
The cache data ID
string
$group
The cache data group
Returns
mixed
Boolean false on failure or a cached data object
Since
1.7.0
Show source code of this method:
get Source Code
public mixed
getAll
()
Get a list of all cached data
Returns
mixed
Boolean false on failure or an object with a list of cache groups and data
Since
1.7.0
Show source code of this method:
getAll Source Code
public bool
store
(mixed
$data
, mixed
$id
, mixed
$group
=
null
)
Store the cached data by ID and group
Parameters
mixed
$data
The data to store
string
$id
The cache data ID
string
$group
The cache data group
Returns
bool
Since
1.7.0
Show source code of this method:
store Source Code
public bool
remove
(mixed
$id
, mixed
$group
=
null
)
Remove a cached data entry by ID and group
Parameters
string
$id
The cache data ID
string
$group
The cache data group
Returns
bool
Since
1.7.0
Show source code of this method:
remove Source Code
public bool
clean
(mixed
$group
=
null
, mixed
$mode
=
'group'
)
Clean cache for a group given a mode.
Parameters
string
$group
The cache data group
string
$mode
The mode for cleaning cache [group|notgroup]
Returns
bool
True on success, false otherwise
Since
1.7.0
Show source code of this method:
clean Source Code
public bool
gc
()
Garbage collect expired cache data
Returns
bool
Since
1.7.0
Show source code of this method:
gc Source Code
public \stdClass
lock
(mixed
$id
, mixed
$group
=
null
, mixed
$locktime
=
null
)
Set lock flag on cached item
Parameters
string
$id
The cache data ID
string
$group
The cache data group
string
$locktime
The default locktime for locking the cache.
Returns
\stdClass Object with properties of lock and locklooped
Since
1.7.0
Show source code of this method:
lock Source Code
public bool
unlock
(mixed
$id
, mixed
$group
=
null
)
Unset lock flag on cached item
Parameters
string
$id
The cache data ID
string
$group
The cache data group
Returns
bool
Since
1.7.0
Show source code of this method:
unlock Source Code
public \Joomla\CMS\Cache\CacheStorage
_getStorage
()
Get the cache storage handler
Returns
\Joomla\CMS\Cache\CacheStorage
Since
1.7.0
Show source code of this method:
_getStorage Source Code
public static string
getWorkarounds
(mixed
$data
, mixed
$options
=
array()
)
Perform workarounds on retrieved cached data
Parameters
array
$data
Cached data
array
$options
Array of options
Returns
string
Body of cached data
Since
1.7.0
Show source code of this method:
getWorkarounds Source Code
public static array
setWorkarounds
(mixed
$data
, mixed
$options
=
[]
)
Create workarounds for data to be cached
Parameters
string
$data
Cached data
array
$options
Array of options
Returns
array
Data to be cached
Since
1.7.0
Show source code of this method:
setWorkarounds Source Code
public static string
makeId
()
Create a safe ID for cached data from URL parameters
Returns
string
MD5 encoded cache ID
Since
1.7.0
Show source code of this method:
makeId Source Code
public static string
getPlatformPrefix
()
Set a prefix cache key if device calls for separate caching
Returns
string
Since
3.5
Show source code of this method:
getPlatformPrefix Source Code
public static array
addIncludePath
(mixed
$path
=
''
)
Add a directory where Cache should search for handlers. You may either pass a string or an array of directories.
Parameters
array
|
string
$path
A path to search.
Returns
array
An array with directory elements
Since
1.7.0
Show source code of this method:
addIncludePath Source Code
Properties Summary
public static \Joomla\CMS\Cache\CacheStorage[]
$_handler
Storage handler
Since
1.7.0
public
array
$_options
Cache options
Since
1.7.0
Tags Summary
Since
1.7.0