ProCache Hooks

Contains implementation for most ProCache hooks to the ProcessWire core.

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the ProCacheHooker class also inherits all the methods and properties of: ProCacheClass and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProCacheHooker::addInitHooks()
None

Add hooks in “init” state

 
ProCacheHooker::addReadyHooks()
None

Add hooks in “ready” state

 
ProCacheHooker::hookPageDeleted(HookEvent $event)
None

Handle a deleted page

 
ProCacheHooker::hookPageEdit(HookEvent $event)
None

Hook into ProcessPageEdit::buildFormSettings to add note about ProCache

 
ProCacheHooker::hookPageRender(HookEvent $event)
None

Hook called after a page is rendered

 
ProCacheHooker::hookPageRenderClearCacheAll(HookEvent $event)
None

Hook to PageRender::clearCacheFileAll (PW 2.6.9+

 
ProCacheHooker::hookPageRenderClearCachePages(HookEvent $event)
None

Hook to PageRender::clearCacheFilePages (PW 2.6.9+

 
ProCacheHooker::hookPageSaved(HookEvent $event)
None

Cache clearing to occur when a page is saved

 
ProCacheHooker::hookPageViewFinished(HookEvent $event)
None

Cache maintenance to occur every 30 seconds

 
ProCacheHooker::hookPagefileNoCacheURL(HookEvent $event)
None

Hook replacing Pagefile::noCacheURL

 
ProCacheHooker::hookTemplateEdit(HookEvent $event)
None

Hook into ProcessTemplate::buildForm

 
ProCacheHooker::pageSaved(Page $page)
None

Implementation for hookPageSaved that can also be called manually for testing

 
ProCacheHooker::pageStatusChanged(Page $page, $fromStatus, $toStatus)
bool

Called when page status has changed

Additional methods and properties

In addition to the methods and properties above, ProCacheHooker also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252