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 #550
    In the 550th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called PagefileMetadata, and more. Read on!
    Weekly.pw / 23 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits