contentbox.models.content.util

Class ContentCacheCleanup

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by coldbox.system.Interceptor
        extended by contentbox.models.content.util.ContentCacheCleanup

This interceptor monitors pages, posts and custom html content so it can purge caches on updates

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any commentService


    • access = public
    • returntype = any
    • inject = commentService@contentbox
    true false
    any contentService


    • access = public
    • returntype = any
    • inject = contentService@contentbox
    true false
    any settingService


    • access = public
    • returntype = any
    • inject = settingService@contentbox
    true false
    Method Summary
    any cbadmin_onCommentStatusUpdate([any event], [any data])
         Listen when comments are moderated.
    any cbadmin_postContentStoreSave([any event], [any data])
         Listen when a content store item is saved.
    any cbadmin_postEntrySave([any event], [any data])
         Listen when entries are saved.
    any cbadmin_postPageSave([any event], [any data])
         Listen when pages are saved.
    any cbadmin_preCommentRemove([any event], [any data])
         Listen when comments are removed.
    any cbadmin_preContentStoreRemove([any event], [any data])
         Listen when a content store item is removed.
    any cbadmin_preEntryRemove([any event], [any data])
         Listen when entries are removed.
    any cbadmin_prePageRemove([any event], [any data])
         Listen when pages are removed.
    any cbui_onCommentPost([any event], [any data])
         Listen when comments are posted.
    private any doCacheCleanup(string cacheKey, [any content])
         Clear the content caches according to incoming key and content object.
     
    Methods inherited from class coldbox.system.Interceptor
    cbLoadInterceptorHelpers, configure, getProperties, getProperty, init, propertyExists, setProperties, setProperty, unregister
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    announce, announceInterception, async, back, externalView, forAttribute, getCache, getCachebox, getColdBoxSetting, getController, getDateTimeHelper, getEnv, getFlash, getFlow, getInstance, getIsoTime, getJsonUtil, getLog, getLogBox, getModuleConfig, getModuleSettings, getRenderer, getRequestCollection, getRequestContext, getRootWireBox, getSetting, getSystemProperty, getSystemSetting, getUserSessionIdentifier, getWirebox, ifNull, ifPresent, inDebugMode, includeUDF, isDevelopment, isProduction, isTesting, layout, listen, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populate, populateModel, relocate, renderExternalView, renderLayout, renderview, runEvent, runRoute, setCachebox, setController, setEnv, setFlash, setFlow, setJsonUtil, setLog, setLogBox, setSetting, setWirebox, settingExists, throwIf, throwUnless, toJson, unless, view, when
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    commentService

    property any commentService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - commentService@contentbox
    serializable - true

    contentService

    property any contentService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - contentService@contentbox
    serializable - true

    settingService

    property any settingService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - settingService@contentbox
    serializable - true

    Method Detail

    cbadmin_onCommentStatusUpdate

    public any cbadmin_onCommentStatusUpdate([any event], [any data])

    Listen when comments are moderated

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_postContentStoreSave

    public any cbadmin_postContentStoreSave([any event], [any data])

    Listen when a content store item is saved

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_postEntrySave

    public any cbadmin_postEntrySave([any event], [any data])

    Listen when entries are saved

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_postPageSave

    public any cbadmin_postPageSave([any event], [any data])

    Listen when pages are saved

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_preCommentRemove

    public any cbadmin_preCommentRemove([any event], [any data])

    Listen when comments are removed

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_preContentStoreRemove

    public any cbadmin_preContentStoreRemove([any event], [any data])

    Listen when a content store item is removed

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_preEntryRemove

    public any cbadmin_preEntryRemove([any event], [any data])

    Listen when entries are removed

    Parameters:
    event - The request context
    data - Intercept data

    cbadmin_prePageRemove

    public any cbadmin_prePageRemove([any event], [any data])

    Listen when pages are removed

    Parameters:
    event - The request context
    data - Intercept data

    cbui_onCommentPost

    public any cbui_onCommentPost([any event], [any data])

    Listen when comments are posted.

    Parameters:
    event - The request context
    data - Intercept data

    doCacheCleanup

    private any doCacheCleanup(string cacheKey, [any content])

    Clear the content caches according to incoming key and content object

    Parameters:
    cacheKey - The cache key to use
    content - The content object