ProCacheHooker class

Located in file /site/modules/ProCache/ProCacheHooker.php

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?        

Common

NameReturnSummary 
ProCacheHooker::addInitHooks()
(nothing)Add hooks in “init” state 
ProCacheHooker::addReadyHooks()
(nothing)Add hooks in “ready” state 
ProCacheHooker::hookPageDeleted(HookEvent $event)
(nothing)Handle a deleted page 
ProCacheHooker::hookPageEdit(HookEvent $event)
(nothing)Hook into ProcessPageEdit::buildFormSettings to add note about ProCache 
ProCacheHooker::hookPageRender(HookEvent $event)
(nothing)Hook called after a page is rendered 
ProCacheHooker::hookPageRenderClearCacheAll(HookEvent $event)
(nothing)Hook to PageRender::clearCacheFileAll (PW 2.6.9+) 
ProCacheHooker::hookPageRenderClearCachePages(HookEvent $event)
(nothing)Hook to PageRender::clearCacheFilePages (PW 2.6.9+) 
ProCacheHooker::hookPageSaved(HookEvent $event)
(nothing)Cache clearing to occur when a page is saved 
ProCacheHooker::hookPageViewFinished(HookEvent $event)
(nothing)Cache maintenance to occur every 30 seconds 
ProCacheHooker::hookPagefileNoCacheURL(HookEvent $event)
(nothing)Hook replacing Pagefile::noCacheURL 
ProCacheHooker::hookTemplateEdit(HookEvent $event)
(nothing)Hook into ProcessTemplate::buildForm 
ProCacheHooker::pageSaved(Page $page)
(nothing)Implementation for hookPageSaved that can also be called manually for testing 
ProCacheHooker::pageStatusChanged(Page $page, $fromStatus, $toStatus)
boolCalled 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.236

Latest news

  • ProcessWire Weekly #519
    In the 519th issue of ProcessWire Weekly we'll check out a new third party module called RockForms, introduce the latest ProcessWire core updates, and more. Read on!
    Weekly.pw / 20 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer