Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi @proloybhaduri,
    Thanks for your message, so you want me to update the hook to flying_press_purge_pages:after ?

    Thread Starter Proloy Bhaduri

    (@proloybhaduri)

    Hi @isaumya ,
    Thanks for your reply.
    Yes, it would be great if you can use the following two hooks.

    flying_press_purge_pages:after
    flying_press_purge_everything:after

    Plugin Contributor iSaumya

    (@isaumya)

    Hey @proloybhaduri,
    Quick question, when flying_press_purge_pages:after hook is executed, is $url be a string of the URL e.g. https://example.com/some-page/ or it will be an array of list of URLs for which the cache is purged?

    Can you please let me know as this is not mentioned in your docs: https://docs.flying-press.com/article/218-before-and-after-purging-all-pages

    Looking forward to your reply.

    Thread Starter Proloy Bhaduri

    (@proloybhaduri)

    Hi @isaumya,
    The hooks flying_press_purge_pages:after and flying_press_purge_everything:after does not require any argument. Updated the docs.
    Thanks,

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @proloybhaduri,
    So, when flying_press_purge_pages:after is fired, there is no way to know for which pages the hook is fired? Like a list of URLs for which flying_press_purge_pages:after is executed?

    Thread Starter Proloy Bhaduri

    (@proloybhaduri)

    Hi @isaumya,

    It can only be known using the following hook.flying_press_purge_url:after

    Here’s the related document. This hook gets executed while purging every url individually.

    So, for purging pages and purging everything it’s not possible to know the purged urls separately because all pages(everything if everything is purged) that have been cached gets purged .

    https://docs.flying-press.com/article/217-before-and-after-purging-url

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @proloybhaduri,
    Thanks for all the info. I’ve updated the flying press hooks in the plugin. You can check it in this plugin build. It will be part of the upcoming release.

    Now this plugin will also purge cache on flying_press_purge_pages:after and flying_press_purge_everything:after hook.

    Thanks.

    Thread Starter Proloy Bhaduri

    (@proloybhaduri)

    Hi @isaumya,
    Thank you very much for your support and superfast resolution.

    Plugin Contributor iSaumya

    (@isaumya)

    Thank you @proloybhaduri. πŸ™‚

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Plugin still using outdated FlyingPress hook’ is closed to new replies.