all repos — wp-ffpc @ 9de0ad8f300dcfb1472fb25b5b3088ac825d4f52

Merge pull request #46 from vdwijngaert/patch-1

Implements #45.
Peter Molnar hello@petermolnar.eu
Fri, 15 Jan 2016 10:33:04 +0000
commit

9de0ad8f300dcfb1472fb25b5b3088ac825d4f52

parent

62f3d0ab00f7bfa9e39ad59c032c7a1eb8948b8d

1 files changed, 13 insertions(+), 0 deletions(-)

jump to
M wp-ffpc-acache.phpwp-ffpc-acache.php

@@ -439,6 +439,19 @@

$to_store = substr_replace( $buffer, $insertion, $index, 0); } + /** + * Allows to edit the content to be stored in cache. + * + * This hooks allows the user to edit the page content right before it is about + * to be stored in the cache. This could be useful for alterations like + * minification. + * + * @since 1.10.2 + * + * @param string $to_store The content to be stored in cache. + */ + $to_store = apply_filters( 'wp-ffpc-to-store', $to_store ); + $prefix_meta = $wp_ffpc_backend->key ( $wp_ffpc_config['prefix_meta'] ); $wp_ffpc_backend->set ( $prefix_meta, $meta );