Severe slowdown on category/filter pages in pocketyourdeal.com

This topic has 4 replies, 2 voices, and was last updated 2 weeks, 6 days ago ago by Jack Richardson

  • Avatar: Arka Sarkar
    Arka Sarkar
    Participant
    August 1, 2026 at 21:39

    The site is experiencing major CPU/RAM spikes tied mainly to WooCommerce category/filter pages, especially the Men and Price archive pages. These requests are taking an unusually long time to finish, which suggests the slowdown is happening during page generation or with theme/plugin logic on filtered catalog views.

    What the logs show:

    Heavy traffic to filtered category URLs, not just the homepage
    Very slow responses on pages like:
    /product-category/men/
    /product-category/price/…
    filtered pages with many query parameters such as filter_cat, min_price, max_price, stock_status, view_mode
    Background WooCommerce processing is also failing during peak activity, including cron/action scheduler tasks
    Likely causes to check:

    Theme filter / layered navigation code
    WooCommerce AJAX/filter behavior
    Product archive template performance
    Background batch processing / cron handling
    Database query efficiency on category/filter pages
    Recommended developer checks:

    Review the theme’s category archive and filter templates
    Check any AJAX-based filter, sort, or grid/list switch scripts
    Inspect WooCommerce background jobs and Action Scheduler tasks
    Reduce expensive queries on filtered archive pages
    Test with the theme temporarily switched off to isolate the issue

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Arka Sarkar
    Arka Sarkar
    Participant
    August 1, 2026 at 22:08

    Hi,

    Hostinger has been investigating the high CPU usage on my website. They suggested that one possible cause is the large number of requests to category pages with multiple filters (such as price, stock status, rating, etc.).

    They mentioned that if these filtered URLs are not important for my website, blocking or redirecting them could help reduce unnecessary server load.

    For my website, I don’t mind if visitors cannot access these filtered category or price URLs. My main concern is keeping the website stable and reducing CPU usage. Even if these filter pages are completely blocked or redirected to the Shop page, that is perfectly fine for me.

    Hostinger suggested blocking URLs like:

    /product-category/price/
    URLs containing filter_cat
    min_price
    max_price
    stock_status
    rating_filter
    view_mode
    view_mode_smart
    add-to-cart

    Could you please let me know whether this can be implemented within the XStore theme or if there is a better way to disable these filtered pages? If possible, I’d prefer a solution from the theme itself rather than adding custom code, so it remains compatible with future updates.

    If blocking or redirecting these URLs can help reduce the server load, I’m happy to proceed with that approach.

    Thank you.

    Files is visible for topic creator and
    support staff only.
    Avatar: Arka Sarkar
    Arka Sarkar
    Participant
    August 1, 2026 at 22:22

    Hi,

    I would like to clarify what I want to achieve.

    I want my customers to be able to access only the normal category pages, such as:

    * [https://pocketyourdeal.com/product-category/men/](https://pocketyourdeal.com/product-category/men/)
    * [https://pocketyourdeal.com/product-category/women/](https://pocketyourdeal.com/product-category/women/)
    * [https://pocketyourdeal.com/product-category/women/jewellery/jewellery-sets/]

    These pages are important for my website and should remain accessible.

    However, I do not want users, bots, or search engines to access URLs that contain multiple filters and parameters, for example:

    * /product-category/men/?et_columns-count=4&filter_cat=...&max_price=300&sale_status=1
    * /product-category/men/?et_columns-count=6&filter_cat=...
    * /product-category/price/rs-399/?et_columns-count=3&filter_cat=...&max_price=300&min_price=100

    Hostinger has informed me that these types of filtered URLs are generating a large number of requests and may be contributing to the CPU spikes on my server.

    For my business, these filtered URLs are not essential. I am completely fine if they are blocked, disabled, return a 404/410 response, or are redirected to the main Shop or Category page. My only requirement is that the standard category pages continue to work normally for customers.

    Is there a built-in XStore setting or an official/recommended solution to prevent access to these filtered URLs without affecting the normal category pages? I would prefer a theme-supported solution instead of custom code if possible, so it remains compatible with future theme updates.

    Thank you.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 3, 2026 at 06:56

    Hello @Arka Sarkar,

    We appreciate the information you have provided. However, such restrictions should be implemented on the server side using .htaccess templates or similar. Our theme does not have a setting for this, as it is a server-side configuration or requires additional customization in child-theme/functions.php that is our of our basic support scope. Therefore, we kindly request that you contact your hosting provider and ask them to apply the necessary restrictions on the server template. Below, we have attached a few examples they can follow.

    Redirect filtered category URLs to the clean category URL

    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{REQUEST_URI} ^/product-category/ [NC]
    RewriteCond %{QUERY_STRING} (^|&)(et_columns-count|filter_[^=]+|min_price|max_price|sale_status|stock_status|rating_filter|orderby|et_per_page|view_mode)=[^&]* [NC]
    RewriteRule ^ %{REQUEST_URI} [R=301,L,NE,QSD]
    </IfModule>

    Block such URLs instead of redirecting

    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{REQUEST_URI} ^/product-category/ [NC]
    RewriteCond %{QUERY_STRING} (^|&)(et_columns-count|filter_[^=]+|min_price|max_price|sale_status|stock_status|rating_filter|orderby|et_per_page|view_mode)=[^&]* [NC]
    RewriteRule ^ - [F,L]
    </IfModule>

    Best regards,
    Jack Richardson
    The 8Theme’s Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.