Support » Plugin: Speed Optimizer - The All-In-One WordPress Performance-Boosting Plugin » Instructions Needed | Helper Function to Purge Everything

  • Resolved jetxpert

    (@jetxpert)


    SiteGround (@sstoqnov) has previously stated that we can now purge all cache (dynamic, memcached, minified assets, etc.) as noted in this forum topic via a helper function.

    Unfortunately, we cannot find the feature in your plugin or how to use the helper function.

    In short, how do we purge above-mentioned cache at once?

    Instructions appreciated.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    It depends where you want to use the helper function.

    If there is a specific event, just hook the function to the action/filter.

    Otherwise, just call it like a standard function

    
    sg_cachepress_purge_everything();
    

    It will clear the dynamic cache, Memcached and it will delete the combined/minified assets.

    Regards,
    Stanimir

    Thread Starter jetxpert

    (@jetxpert)

    @sstoqnov,

    Thank you for the additional information.

    For those who are not developers or well-versed with the use of hook functions, can you provide an example (Code Snippet) using your helper function where we can clear all cache every time we click the “Purge SG Cache” button displayed in WordPress’ menu?

    Again, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Instructions Needed | Helper Function to Purge Everything’ is closed to new replies.