Forum Replies Created

Viewing 15 replies - 241 through 255 (of 295 total)
  • Plugin Support wpmansour

    (@wpmansour)

    Optimizing tables on a live, busy WooCommerce/Membership site does carry risks, including potential slowdowns or data inconsistencies if modifications occur during the process. To minimize risks, ensure you:

    • Backup your database before optimization.
    • Schedule the optimization during low-traffic periods.
    • Consider running optimizations first in a staging environment if possible.

    With these precautions, you can reduce potential issues and ensure the optimization process goes smoothly.

    Plugin Support wpmansour

    (@wpmansour)

    Hello @assassinateur ,

    I appreciate your patience as we delve into this matter. I’ve attempted to replicate the issues with the Cart/Checkout blocks on different environment, but everything appears to be functioning correctly in our tests. It seems we may need more specific scenarios or configurations where this issue is manifesting.

    Could you please provide additional details or examples from the sites experiencing these issues? This would greatly assist us in pinpointing the exact conditions under which the problem occurs, enabling us to address it more effectively.

    We are committed to ensuring WP Optimize works seamlessly with WooCommerce, and your insights are invaluable in helping us achieve that. Looking forward to your detailed feedback.

    Plugin Support wpmansour

    (@wpmansour)

    Thank you for clarifying your role and the broader impact of the issue with WooCommerce Cart & Checkout.

    I’ve escalated this matter to our development team and the board for further review. We aim to explore and implement a built-in solution that addresses the script handling for WooCommerce Cart & Checkout more effectively.

    We value the feedback from professionals like yourself and are committed to enhancing our plugin’s compatibility and performance. You can expect updates on this matter as we progress.

    Thank you once again for bringing this to our attention.

    Plugin Support wpmansour

    (@wpmansour)

    Hello Nadir,

    To exclude specific JavaScript files accurately in WP Optimize, you should use the full paths relative to your website’s root. Below are typical paths for the WooCommerce JavaScript files that you might need to exclude. These paths are based on a standard WooCommerce setup:

    • /wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/checkout.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js

    Here’s how to exclude them:

    1. Go to WP-Optimize > Minify.
    2. In the Exclude JavaScript from processing section, add the full paths as listed above.

    Also, remember to exclude your Cart and Checkout pages from caching:

    1. Go to WP-Optimize > Cache > Advanced settings.
    2. Add your Cart and Checkout pages in the “URLs to exclude from caching” field. Typically, these might be:
      • /cart
      • /checkout

    Please implement these settings, test your site thoroughly, and let us know if the issue is resolved or if further assistance is needed.

    Best regards,
    Mansour M

    • This reply was modified 6 months, 2 weeks ago by wpmansour.
    Plugin Support wpmansour

    (@wpmansour)

    You’re welcome, glad to hear!

    Kindly let us know if you encounter any issues.

    Have a nice day! ??

    Plugin Support wpmansour

    (@wpmansour)

    @asafm7 Try this code:

    function custom_wpo_cache_ignore_query_variables($exclude) {
        $new_variables = array('utm_campaign', 'utm_medium', 'utm_source', 'utm_content', 'utm_term', 'your_query_var1', 'your_query_var2'); 
        $exclude = array_merge($exclude, $new_variables);
        return $exclude;
    }
    add_filter('wpo_cache_ignore_query_variables', 'custom_wpo_cache_ignore_query_variables');

    Please replace 'your_query_var1' and 'your_query_var2' with the actual query parameters you want WP-Optimize to ignore. Add this code to your theme’s functions.php file or a custom plugin.

    Let us know if you still face any issues. Thanks!

    Plugin Support wpmansour

    (@wpmansour)

    Hello,

    I understand you’d like to configure WP-Optimize to ignore certain query parameters so that all visitors get served from the cache, irrespective of the query strings in the URL. You can indeed accomplish this by utilizing the available wpo_cache_ignore_query_variables filter hook.

    Here’s how you can customize this hook to include specific query parameters that should be ignored by the cache:

    function custom_wpo_cache_ignore_query_variables($exclude) {
        $new_variables = array('your_query_var1', 'your_query_var2'); 
        $exclude = array_merge($exclude, $new_variables);
        return $exclude;
    }
    add_filter('wpo_cache_ignore_query_variables', 'custom_wpo_cache_ignore_query_variables');

    Please replace 'your_query_var1' and 'your_query_var2' with the actual query parameters you want WP-Optimize to ignore. Add this code to your theme’s functions.php file or a custom plugin.

    This adjustment will ensure that these query parameters do not prevent pages from being served from cache, thereby potentially improving your site’s performance for users who visit your site via referral links that include these parameters.

    Let us know if you have any further questions or need assistance. We’re here to help!

    Best regards,
    Mansour M

    • This reply was modified 6 months, 2 weeks ago by wpmansour. Reason: removed unknown span
    Plugin Support wpmansour

    (@wpmansour)

    Creating a TAR file backup of your website is a prudent step before making significant changes, such as purging and preloading the cache. This ensures that you have a complete snapshot of your site’s current state, which can be restored if necessary.

    However, it’s important to note that the TAR file backup will include your site’s databases and files but not the dynamically generated cache itself. If issues arise after purging and preloading the cache, restoring from the TAR file will revert your site to its previous state, but it won’t restore the deleted cache per se. The cache would need to be rebuilt either through visitor interactions or by manually preloading again.

    Could you please specify the type of issues you are encountering after purging and preloading the cache?

    Plugin Support wpmansour

    (@wpmansour)

    Dear Karl,

    Thank you for reaching out. I understand you want to ensure that all users see updates promptly on your site.

    To ensure that all users see your site’s updates immediately, you should both “purge the cache” and “preload” the cache. Purging the cache alone removes old cached content, making way for new updates to be visible. However, preloading the cache after purging will create new cache files immediately, ensuring that all users will see the most recent version of your site without waiting for the cache to rebuild as they visit the site. This approach provides a consistent and fast experience for all users.

    Regarding the implications of purging the cache, it’s important to note that while this action does clear stored pages, the impact on your site’s performance is minimal and very temporary. The time it takes for your server to regenerate these pages typically spans just a few seconds, depending on server performance levels. This process ensures that all users will view the most current content without significant delays. Essentially, the benefits of displaying the latest updates promptly far outweigh the brief moment needed to refresh the cache.

    Let me know if you have any further questions! We’re happy to help ??

    Best regards,
    Mansour M

    Plugin Support wpmansour

    (@wpmansour)

    We understand you’re encountering connection issues with the reSmush.it API using the WP-Optimize plugin. To help us resolve this effectively, we recommend contacting the reSmush.it team for assistance with whitelisting IP addresses or other necessary configurations. You can reach out to them directly via their contact page: reSmush.it (https://resmush.it/contact).

    If the problem persists after contacting them or if they don’t respond, please share your support ticket ID with us. This will enable us to prioritize and escalate the issue appropriately.

    Thank you for your cooperation, and we look forward to resolving this promptly for you!

    Plugin Support wpmansour

    (@wpmansour)

    Hi @deeuk & @tpolmike ,

    We understand you’re encountering connection issues with the reSmush.it API using the WP-Optimize plugin. To help us resolve this effectively, we recommend contacting the reSmush.it team for assistance with whitelisting IP addresses or other necessary configurations. You can reach out to them directly via their contact page: reSmush.it (https://resmush.it/contact).

    If the problem persists after contacting them or if they don’t respond, please share your support ticket ID with us. This will enable us to prioritize and escalate the issue appropriately.

    Thank you for your cooperation, and we look forward to resolving this promptly for you!

    Plugin Support wpmansour

    (@wpmansour)

    The code provided will only clear the cache to ensure you receive fresh content. It will not automatically reload the page when the MyCred balance is updated.

    Unfortunately, automatic page reloading after a balance update isn’t supported by WP-Optimize since it falls outside our plugin’s scope. Instead, it’s a custom feature that would require additional development on your end.

    Plugin Support wpmansour

    (@wpmansour)

    Apologies for the inconvenience. I’ll keep this thread open and let you mark it as resolved once everything is sorted. In the meantime, could you please provide the support ticket number you received from resmush.it? This will help us investigate the issue further.

    Plugin Support wpmansour

    (@wpmansour)

    Instead of adding this to your functions.php file directly, I recommend using the Code Snippets plugin, which provides a safe and easy way to manage custom PHP code. Here’s what to do:

    1. Install and Activate the Code Snippets Plugin:
      • In your WordPress admin dashboard, navigate to Plugins > Add New.
      • Search for “Code Snippets.”
      • Install and activate the plugin, or download it from Code Snippets Plugin.
    2. Add the Cache Clearing Hook:
      • In the WordPress dashboard, go to Snippets > Add New.Give your snippet a title, and paste this code into the provided field:
    add_filter('mycred_add_finished', 'check_for_balance_change_and_purge_cache', 1000, 3);
    
    function check_for_balance_change_and_purge_cache($reply, $request, $mycred) {
        if ($reply === true) {
            // Clear the entire WP-Optimize cache
            WP_Optimize()->get_page_cache()->purge();
        }
        return $reply;
    }
    • Set the snippet to Run snippet everywhere.
    • Click Save Changes and Activate.

    This snippet will automatically flush the WP-Optimize cache when a user’s MyCred balance changes.

    Hope it helps ??

    • This reply was modified 6 months, 3 weeks ago by wpmansour.
    Plugin Support wpmansour

    (@wpmansour)

    It seems like your WP-Optimize setup affected your search functionality, likely due to some cache settings or database optimizations that may have impacted the product search results. Here is a step-by-step guide to restore the search function while maintaining a safe optimization routine:

    1. Backup Your Database:
      Before proceeding, ensure you have a complete backup of your database. This is crucial because it will help restore data if needed. WP-Optimize cannot restore a database on its own. Use UpdraftPlus or a similar backup tool for this purpose??.
    2. Check for Database Optimization Errors:
      Go to WP Admin Panel ? WP-Optimize ? Database and ensure that any optimizations you have run did not remove critical data or settings.
    3. Review Cache Settings:
      The cache settings might be affecting the search. Disable caching temporarily by going to WP Admin Panel ? WP-Optimize ? Cache and turn off caching. Clear your site’s cache completely, including the browser cache??.
    4. Exclude Product Pages from Cache:
      Sometimes product pages need to be excluded from caching. Go to WP-Optimize ? Cache ? Advanced Settings and add the path or URLs of product pages to the list of excluded URLs??.
    5. Check Search Functionality:
      After disabling the cache and clearing it, try searching again. If search works now, then you can narrow down which cache settings caused the issue.
    6. Enable Minification Cautiously:
      If you had minification enabled, check for conflicting scripts or stylesheets. Disable minification temporarily and test the search functionality again. You can try enabling minification step-by-step once search is confirmed to be working??.
    7. Clear Transients:
      WP-Optimize often clears transient data, which might reappear frequently. Schedule transient cleaning on a weekly basis to prevent build-up??.
    8. Re-enable Caching:
      Once search is confirmed to work, gradually re-enable caching and minification settings.
    9. Check for Theme/Plugin Conflicts:
      Some themes or plugins might access content in non-standard ways, impacting image or product visibility in search. Ensure your theme or page builder isn’t causing false flags for unused content??.

    By following these steps, you should be able to diagnose and restore search functionality without sacrificing the benefits of WP-Optimize.

Viewing 15 replies - 241 through 255 (of 295 total)