Ipstenu / varnish-http-purge

Proxy Cache Purge
Apache License 2.0
46 stars 48 forks source link

Added $postId as parameter to the vhp_purge_urls filter #8

Closed jnachtigall closed 9 years ago

jnachtigall commented 9 years ago

Just something quick before this is released. Added $postId as parameter is really helpful in order to differentiate what extra URLs to add. I just noticed this: Say, the $postId is a product, then purge the shop home too and all upselling products. If it is a blog, do not purge anything related to shop, just the blog stuff. Depending on a users need and what else she/he needs to do, there might be even more use cases. So passing the $postId really helps.

Last commit, I promise ;) and it's only very small improvement.