• cabohe

    (@cabohe)


    It’s a great plugin for basic and quick optimization. For advanced settings and fine-tuning, look for another plugin.

    I think a great improvement would be an “Automatic Purge” option or addon. Sometimes when updating a CPT, the plugin clears the cache, but if I have a custom query on another page of the site, the plugin doesn’t know, and that page is never uncached until I manually clear it.

    The update could be something like: If I update “Books” (CPT) or “Posts,” refresh all cache or refresh the cache for specific pages (with a page selector).

Viewing 1 replies (of 1 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Thank you for your review @cabohe ,

    We will consider this as an option provided by the plugin. When enabling the Automatic purge, the plugin starts monitoring WordPress hooks and purges the entire page cache or performs a partial purge when some of them fires. If you are using CPT updating that page may not trigger the default hooks. Meanwhile we have a custom filer that addresses cache purging when the hook is not detected.

    To address these situations, we have provided a public function that you can utilize in your code.

    if (function_exists('sg_cachepress_purge_cache')) {
      sg_cachepress_purge_cache();
    }

    Preferably, you can pass an URL to the function to clear the cache just for it instead of purging the entire cache. For example:

    if (function_exists('sg_cachepress_purge_cache')) {
      sg_cachepress_purge_cache('https://yoursite.com/pluginpage');
    }

    If you are comfortable you can explore this function and modify it to possibly fulfil your requirement.

    Best regards,
    Georgi Ganchev
    SiteGround.com

Viewing 1 replies (of 1 total)

The topic ‘Nice integration with Siteground hosting’ is closed to new replies.