• Resolved gabehh95

    (@gabehh95)


    Hello,

    I have a problem with the plugin. When refreshing the page after deleting a product, the product reappears. If I try to delete this product again, it shows a message “An error has occurred”.

    I understand that the error appears because the product has already been removed from the database, but I am not using any cache plugin.

    The problem is persistent with FireFox and Chrome. But I don’t have that problem with Safari.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @gabehh95

    Thank you for your message. Based on the information you provided, it still seems like a caching issue. To further investigate the problem, could you please provide us with a link to test the issue? This will help us to determine the cause of the problem and provide a solution.

    Thread Starter gabehh95

    (@gabehh95)

    Hi @templateinvaders

    Yes, of course, my website is https://diverko.com/.

    Thank you!

    Plugin Author templateinvaders

    (@templateinvaders)

    @gabehh95

    The wishlist page response header includes the following HTTP response headers related to caching:

    x-cache: uncached
    x-cache-hit: MISS
    x-cacheable: YES:Forced

    Here is what each of them means:

    1. x-cache: uncached – This header indicates that the requested resource was not found in the cache and was retrieved directly from the server.
    2. x-cache-hit: MISS – This header indicates that the requested resource was not found in the cache and was retrieved from the server.
    3. x-cacheable: YES:Forced – This header indicates that the requested resource can be cached, and that caching is forced. This means that the resource will be cached even if the client has set headers that would normally prevent caching.

    So you need to investigate why this page is being forced to cache. It could be due to settings in Cloudflare.

    Thread Starter gabehh95

    (@gabehh95)

    Hi @templateinvaders

    I have added the following lines in my website’s .htaccess file:

    <IfModule mod_headers.c> 
       Header set Cache-Control "private" 
    </IfModule>

    The header is disabled:

    x-cacheable: NO:Cache-Control=private

    But I can’t fix the issue, the product appears again.

    Plugin Author templateinvaders

    (@templateinvaders)

    The wishlist page is still in the Cloudflare cache. You can see the response header with the value ‘cf-cache-status: HIT‘. You need to figure out how to exclude the wishlist page from the Cloudflare cache.

    Thread Starter gabehh95

    (@gabehh95)

    Hi @templateinvaders

    I have solved the problem, the change in the htaccess file works fine. It was necessary to clear the cache of the server and the browser.

    I’ll add the conditional:

    <If "%{THE_REQUEST} =~ m#/wishlist#">

    So that it is only disabled on the wishlist page.

    Thanks a lot!.

    Regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Products not removing from wishlist’ is closed to new replies.