• Our editors need to be able to also purge cache after making changes (publishing article or translation), to be able to see their changes and that it is ok.

    How do I (super admin) do this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Plamen M

    (@plamenm)

    Hello @torgrim,

    The plugin is designed to automatically flush the server sided cache when an article or a post is created or updated in the back end.

    To see the changes, your editors would also need to remember to flush the cache in their browsers.

    If you continue experiencing issues, please post a support ticket through the User Area in your Site Ground hosting account. We will then be able to further check and investigate the case on the spot.

    Regards,
    Plamen.M
    Tech Support Team
    SiteGround.com

    Thread Starter Torgrim Sandvoll

    (@torgrim)

    My editors and I, the superadmin, flush our local caches and test on clean computers, but still the changes do not show.

    This problem is for a few plugins, but most notable with the Translatepress plugin. We are do a lot of translation (multi-language site).

    Editors (translators) must call me, I must log in, and push the flush button for them a few times each day. Very frustrating and time-consuming, not to mention the poor editors that must wait 3-4 minutes to see their changes.

    Very annoying that Editors and others can’t have the “Flush SG cache” button too…
    – – –
    PS: Yes, your plugin is designed to automatically flush the server sided cache when page/post update. But it does not automatically flush for translations, minor changes, setting changes, etc.

    Plugin Support Dimo Dimov

    (@dimodi)

    Hello @torgrim,

    You can provide purge cache capabilities by adding this code snippet to your theme’s function.php file:

    add_filter( ‘sgo_purge_button_capabilities’, ‘sgo_add_new_role’ );
    function sgo_add_new_role( $default_capabilities ) {
    // Allow new user role to flush cache.
    $default_capabilities[] = ‘delete_others_posts’; // For Editors.
    $default_capabilities[] = ‘edit_published_posts’; // For Authors.

    return $default_capabilities;
    }

    The filter provided above along with all custom filters available for our plugin can be found in the article below:

    https://eu.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/#Control_which_user_roles_have_permission_to_do_a_manual_cache_purge

    Regards,
    Dimo

    Thread Starter Torgrim Sandvoll

    (@torgrim)

    Thanks Dimo, that worked wonders and was just what I was looking for! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.