Class CacheableBehavior
CacheableBehavior class
Used from BEObject to clean cached data when save or delete object Data are meant to be cached through BeObjectCache class in libs
- ModelBehavior
- CacheableBehavior
Located at models/behaviors/cacheable.php
Methods summary
public
|
|
public
boolean
|
|
public
|
|
public
|
#
setObjectsToClean( Model & $model, integer $objectId, array $excludeIds = array() )
Set an array of object id to clean from cache starting from an object id |
public
|
#
getObjectsToCleanById( Model & $model, integer $objectId, array $excludeIds = array() )
Return an array of object ids to clean from cache starting from $objectId |
public
|
#
addObjectsToClean( Model & $model, array|integer $ids = array() )
Add object ids to delete from cache to self::objectsToClean array |
protected
array
|
|
public
|
#
clearCache( Model & $model, integer $objectId, boolean $reset = true, $descendants = true )
Clear object cache |
public
|
#
clearCacheByIds( Model & $model, array $objectIds )
Clear cache of an array of objects calculating from $objectIds |
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
Properties summary
private
boolean
|
$on
If the behavior is active or not |
#
false
|
private
|
$BeObjectCache
If object cache is activate by objectCakeCache config param contain instance of BeObjectCache class in libs |
#
null
|
private
array
|
$objectsToClean
|
#
array()
|