CondeNast / purgely

A WordPress plugin to manage Fastly caching behavior and purging.
24 stars 9 forks source link

Filtered Surrogate-Control TTL is not applied #26

Open tollmanz opened 8 years ago

tollmanz commented 8 years ago

If you use the purgely_surrogate_control filter to alter the TTL for an individual page, the value never gets applied. It changes the $seconds value, but unfortunately, that value is never used.

I think we will need something like the following to get the value applied:

$surrogate_control->set_seconds( $seconds );
$surrogate_control->set_value( $surrogate_control->prepare_value( $seconds ) );

This sets the seconds, prepares the value, and sets the value.

dennisroethig commented 7 years ago

@tollmanz can you let me know if this project is still actively maintained? I opened a pull request a week ago or so but never got any reply.

Thanks