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.244

Latest news

  • ProcessWire Weekly #559
    The 559th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 25 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull