Forum Replies Created

Viewing 15 replies - 31 through 45 (of 290 total)
  • Plugin Support wpmansour

    (@wpmansour)

    In this case, since both Essential Blocks and Spectra Blocks work when WP-Optimize is disabled, it’s possible that the caching or minification feature is interfering with how those block plugins load their scripts or styles.

    Here are a few things you could try to resolve this:

    1. Disable Minification: WP-Optimize includes options for minifying CSS and JavaScript files. Sometimes, the minification process can break block-based plugins. You can try disabling minification by going to WP-Optimize > Minify and unchecking the relevant options for CSS and JavaScript.
    2. Exclude Specific URLs or Files from Caching: If the issue is caching-related, you might want to exclude certain pages (like those using block editors) from the cache. Go to WP-Optimize > Cache > Advanced setting (tab) and add the URLs of the affected pages to the exclusion list.

    Please give these steps a try and let us know if the issue persists. If it does, feel free to share any error messages or logs, and we’ll be happy to take a closer look!

    Plugin Support wpmansour

    (@wpmansour)

    Glad to hear that : )

    Plugin Support wpmansour

    (@wpmansour)

    Thank you for confirming and providing the steps to replicate the issue. I really appreciate that.

    I have successfully replicated the same behavior, and it does appear to be a bug. I’ve escalated this to our development team for further investigation, and they are working on a fix.

    I’ll keep you posted as soon as I have any updates from the team. Thanks for your patience!

    Plugin Support wpmansour

    (@wpmansour)

    While hitting a perfect score like 99 is rare due to various factors (e.g., server response, external scripts), WP-Optimize can still help improve your site speed.

    Make sure Page Caching is enabled under WP-Optimize > Cache, and consider preloading your pages for faster load times. Also, optimizing your images under WP-Optimize > Images and enabling Lazy Load can make a big difference. Don’t forget to run Database Optimization to clean up unnecessary data!

    However, one key thing to note: the server plays a huge role in speed scores. Even with full optimization, a slower server will hold you back. Faster servers can give you much better performance and help you get closer to the high scores you’re aiming for.

    Plugin Support wpmansour

    (@wpmansour)

    Can you try adding this code to your theme’s functions.php file? It should give Editors the ability to manage WP-Optimize settings and hide the WP-Optimize sidebar for them:

    function wpo_grant_editor_manage_settings() {
    $role = get_role('editor'); // Get the Editor role
    if ($role) {
    $role->add_cap('wpo_manage_settings'); // Allows managing WP-Optimize settings
    $role->add_cap('wpo_run_optimizations'); // Allows running cache and optimizations
    }
    }
    add_action('init', 'wpo_grant_editor_manage_settings');

    // Hide WP-Optimize sidebar menu for Editors
    function wpo_hide_menu_for_editors() {
    // Check if the current user is an Editor but not an Administrator
    if (!current_user_can('administrator') && current_user_can('editor')) {
    remove_menu_page('wp-optimize'); // Slug for WP-Optimize menu
    }
    }
    add_action('admin_menu', 'wpo_hide_menu_for_editors', 999);

    Let me know if this works for you!

    Plugin Support wpmansour

    (@wpmansour)

    Thanks for reaching out! We haven’t encountered this issue before, but I’ll look into it further and try to replicate the behavior on my end. If I manage to reproduce the issue, I’ll make sure to investigate it thoroughly and provide any updates or potential solutions here.

    Plugin Support wpmansour

    (@wpmansour)

    To handle your request of allowing certain roles (like Editors) to manage cache clearing while hiding the WP-Optimize sidebar for them, we’ve created two custom code snippets. The first snippet grants access to the Clear Cache feature for specified roles, and the second snippet hides the WP-Optimize sidebar menu for Editors to ensure they don’t have unnecessary access. You can directly add these codes to your theme’s functions.php file.

    1. Grant Access to “Clear Cache” for Specific Roles:

    This snippet lets you assign cache management permissions to specific roles (e.g., Editor). Simply modify the roles in the $roles array if needed.

    // Grant access to WP-Optimize Clear Cache feature for specific roles
    function wpo_grant_clear_cache_capability_to_roles() {
    // Define roles to grant access
    $roles = ['editor']; // You can add or remove roles by add comma role (, 'author') here

    foreach ($roles as $role_name) {
    $role = get_role($role_name);
    if ($role) {
    // Grant access to clear cache for the specified roles
    $role->add_cap('wpo_manage_cache');
    }
    }
    }
    add_action('init', 'wpo_grant_clear_cache_capability_to_roles');

    2. Hide the WP-Optimize Sidebar Menu for Editors:

    This snippet hides the WP-Optimize menu from Editors while still making it accessible to Administrators.

    // Hide WP-Optimize sidebar menu for Editors
    function wpo_hide_menu_for_editors() {
    // Check if the current user is an Editor and not an Administrator
    if (!current_user_can('administrator') && current_user_can('editor')) {
    remove_menu_page('WP-Optimize'); // The slug for WP-Optimize menu
    }
    }
    add_action('admin_menu', 'wpo_hide_menu_for_editors', 999);

    This hides the WP-Optimize sidebar menu from Editors, ensuring they don’t see the WP-Optimize menu in their dashboard.

    Note: To make sure these changes work as expected, ensure that “Enable the caching menu in the admin bar” is checked under the WP-Optimize settings in the admin panel. This will allow Editors (and other roles you specify) to access the cache-clearing function via the top admin bar menu

    If you prefer not to edit your theme’s functions.php file or are looking for a plugin-based solution, you can use a role management plugin like User Role Editor. This plugin allows you to easily manage capabilities for different roles, including enabling cache features and hiding menus.

    Feel free to let me know if you need further help or have any questions, Thanks you!

    Plugin Support wpmansour

    (@wpmansour)

    By default, the Editor role does not have the ability to purge or minify cache in WP-Optimize. However, you can enable this functionality by adding a small piece of custom code to your site.

    Plugin Support wpmansour

    (@wpmansour)

    1. Since you already have 22 images and want to add more, I’d recommend using pagination or a load more button to avoid loading too many images at once. This helps maintain performance, especially on mobile, while still displaying all your images.
    2. To verify if your site supports HTTP/2, you can ask your hosting provider or use an online tool like KeyCDN’s HTTP/2 Test to check.
    Plugin Support wpmansour

    (@wpmansour)

    Just to clarify, is the issue happening on your entire site or only certain pages? Also, are you using any other caching or optimization plugins alongside WP-Optimize? Lastly, do you have a cache lifespan set in WP-Optimize, and if so, what’s it currently set to? This will help me understand the situation better.

    Plugin Support wpmansour

    (@wpmansour)

    @iscomputerman, high PHP-FPM usage could be caused by excessive caching or database operations. You might want to try reducing the cache lifespan or disabling certain features like minification to ease the server load.

    @jakezehn, your approach of manually clearing the cache directory and setting a smaller cache window is a solid solution. Reducing the cache lifespan to ensure regular purges is key for avoiding the cache growing too large.

    For both of you, if the issues persist, consider adjusting the cache settings or disabling unnecessary features temporarily to balance server load. Feel free to start a new thread if you need more specific guidance!

    Plugin Support wpmansour

    (@wpmansour)

    Hey @jennygw,

    Thanks for sharing those PageSpeed results! I see the desktop performance is solid, but mobile needs a little tweaks. No worries, though—since you’re already using WP-Optimize, we can fine-tune a few things to boost that mobile speed!

    One of the first things I noticed is the large image slowing things down. You can use WP-Optimize’s WebP image conversion option under the “Images” tab. This will help compress the image without losing quality, making it load faster. Also, try using the Preload Largest Contentful Paint image option, which will tell the browser to load that key image earlier.

    Since JavaScript is blocking the page from loading quickly, head over to the Minify tab in WP-Optimize. Here, you can enable JavaScript and CSS minification and merging, which reduces the file size and the number of requests your site makes. You can also enable asynchronous loading of scripts, which ensures that essential content shows up before the non-essential JavaScript files.

    Also, don’t forget to check the Caching tab to make sure page caching is enabled and set up properly. WP-Optimize offers advanced caching features that will keep your pages loading fast, especially for mobile. You can enable it and even fine-tune it by excluding specific URLs from being cached, if needed.

    Lastly, if you haven’t already enabled lazy loading under the “Images” tab, I recommend turning that on. This will make sure images only load when they’re about to appear on the screen, which can be a big help for mobile users with slower connections.

    Let me know how it goes or if you need any help adjusting these options.

    Thanks!

    Plugin Support wpmansour

    (@wpmansour)

    It appears there may be some server-related issues causing the 403 Forbidden error when trying to access your website. I recommend reaching out to your hosting provider or checking your server logs for further insights.

    If the issue isn’t server-related or you suspect WP-Optimize might be contributing, please feel free to contact our dedicated support team. As a premium user, you have access to priority support. You can submit a request here: WP-Optimize Premium Support, and our team will assist you promptly.

    Plugin Support wpmansour

    (@wpmansour)

    Yes, you’re absolutely correct. Once you press the “Mark all images as uncompressed” button with the “Create WebP version of image” option enabled, WP-Optimize will treat those previously compressed images as new and will re-compress them, and create the WebP versions at the same time.

    So by pressing that button, the previously compressed images will indeed be re-processed with both compression and WebP creation!

    Plugin Support wpmansour

    (@wpmansour)

    Sure, Let me break it down for you:

    1. Auto Compression and WebP: Yes, you can enable both the auto-compress and Create WebP version of images options at the same time. When you upload new images, WP-Optimize will first compress them and then create a WebP version, giving you even smaller file sizes without sacrificing much quality. So, ticking both boxes is a good idea if you’re looking to save more space!
    2. Batch Conversion of Existing JPGs: To batch convert your previously compressed images to WebP, you don’t need to worry about re-optimizing all the images. Simply selecting the “Create WebP version of image” will convert all the images that have already been optimized to WebP format.

    However, if you want to re-optimize all your images (and also create WebP versions for them again), you can go to WP-Optimize → Images and click “Mark all images as uncompressed”. This will let you re-optimize the images, and the plugin will handle the compression and WebP conversion as needed.

    Hope that helps : )

Viewing 15 replies - 31 through 45 (of 290 total)