-
Adds a cache to the manager.
-
(array) generateNamespace ()
Browse code
Generates namespaces for the cache manager
returns Path and filename for the current namespace
throws sfException if the generation fails
-
Retrieves namespace for the current cache.
returns The data of the cache
-
Retrieves the current cache type.
returns The current cache type
-
(mixed) getCacheConfig (, , )
Browse code
Gets a config option from the cache.
returns Value of the option
-
(int) getClientLifeTime ()
Browse code
Retrieves client lifetime from the cache option list
returns Client lifetime
-
(sfContext) getContext ()
Browse code
Retrieves the current cache context.
returns The sfContext instance
-
Retrieves lifetime from the cache option list.
returns LifeTime
-
Retrieves vary option from the cache option list.
returns Vary options for the cache
-
Returns true if there is a cache.
returns true, if there is a cache otherwise false
-
Ignores the cache functionality.
returns true, if the cache is ignore otherwise false
-
Initializes the cache manager.
-
(boolean) isActionCacheable ($moduleName, $actionName)
Browse code
| $moduleName |
A module name |
| $actionName |
An action or partial template name |
Returns true if the action is cacheable.
returns True if the action is cacheable
-
(bool) isCacheable ($internalUri)
Browse code
| $internalUri |
Internal uniform resource identifier |
Returns true if the current content is cacheable.
Possible break in backward compatibility: If the sf_lazy_cache_key
setting is turned on in settings.yml, this method is not used when
initially checking a partial's cacheability.
returns true, if the content is cacheable otherwise false
-
(boolean) isContextual ()
Browse code
Retrieves contextual option from the cache option list.
returns true, if is contextual otherwise false
-
(string) lastModified ()
Browse code
Retrieves the last modified time.
returns Last modified datetime for the current namespace
-
registerConfiguration ()
Browse code
Registers configuration options for the cache.
-
Removes the cache for the current namespace.
returns true, if the remove happend otherwise false
-
Sets the cache content
returns true, if the data get set successfully otherwise false
-
Executes the shutdown procedure.
-
(boolean) start (, , , )
Browse code
Starts the fragment cache.
returns true, if success otherwise false
-
Stops the fragment cache.
returns true, if success otherwise false
-
(boolean) withLayout ()
Browse code
Retrieves the layout from the cache option list.
returns true, if have layout otherwise false