• Is there a way to detect, whether W3TC will process a page or not? The page might not be processed, because W3TC is not installed, page caching disabled, …

    Background: I want to deliver gzipped content even if W3TC for any reason does not produce it. So I want to detect in my theme’s header.php, whether W3TC will pack the output or otherwise enable zlib.

    Thanks for your help,
    – lars.

    https://wordpress.org/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • yup you can set up a hook like add_action('w3tc_pgcache_flush_post',...) which is one of many hooks made available to keep track of when an activity occurs and from there perform your magic.

Viewing 1 replies (of 1 total)

The topic ‘Detect W3TC page caching’ is closed to new replies.