• Resolved BenAttenborough

    (@benattenborough)


    It seems like when using the “All Products” block the HTTP request made is cached. The problem is if we change the product names or pictures users won’t see the changes since the http request headers stay the same so the user receives a cached response instead of the updated data. If I go in and change something on the block itself like the number of columns or products to show then the request header changes and thus the cache is broken and new data is fetched. However if I go back and restore the old block settings then the old headers will be sent and thus the old response will be fetched. When product data changes there needs to be a way to bust the cache. Perhaps some parameter on the url would do it.
    Until then I think I’ll have to use the product shortcode instead which doesn’t seem to have these issues.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support fevered – a11n

    (@fevered)

    Hey there!

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter BenAttenborough

    (@benattenborough)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://upnorthcampervans.co.uk
    Site address (URL): https://upnorthcampervans.co.uk
    WC Version: 4.8.0
    REST API Version: ? 4.8.0
    WC Blocks Version: ? 4.0.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.7.3
    Log Directory Writable: ?
    WP Version: 5.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.12
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.47-cll-lve
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ? Your server does not support the mbstring functions - this is required for better character encoding. Some fallbacks will be used instead for it.
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.8.0
    WC Database Prefix: wpuv_
    Total Database Size: 1.67MB
    Database Data Size: 1.46MB
    Database Index Size: 0.21MB
    wpuv_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_actionscheduler_actions: Data: 0.00MB + Index: 0.02MB + Engine MyISAM
    wpuv_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_options: Data: 1.21MB + Index: 0.06MB + Engine MyISAM
    wpuv_postmeta: Data: 0.05MB + Index: 0.03MB + Engine MyISAM
    wpuv_posts: Data: 0.19MB + Index: 0.02MB + Engine MyISAM
    wpuv_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_term_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_usermeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_bookings_availability: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_bookings_availabilitymeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_booking_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpuv_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpuv_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 13
    nav_menu_item: 31
    page: 8
    post: 3
    product: 3
    revision: 41
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (10) ###
    
    Creative Mail by Constant Contact: by Constant Contact – 1.2.3 – Installed version not tested with active version of WooCommerce 4.0
    Facebook for WooCommerce: by Facebook – 2.2.0
    Jetpack by WordPress.com: by Automattic – 9.2.1
    Google Ads & Marketing by Kliken: by Kliken – 1.0.6
    Mailchimp for WooCommerce: by Mailchimp – 2.5.0
    Under Construction: by WebFactory Ltd – 3.83
    WooCommerce Blocks: by Automattic – 4.0.0
    WooCommerce Bookings: by WooCommerce – 1.15.31
    WooCommerce Shipping & Tax: by Automattic – 1.25.4
    WooCommerce: by Automattic – 4.8.0
    
    ### Inactive Plugins (2) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.7
    Hello Dolly: by Matt Mullenweg – 1.7.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: booking (booking)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #6 - /shop/
    Basket: #7 - /basket/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: campervans
    Version: 1.0.0
    Author URL: https://www.benattenborough.org.uk/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 5
    Oldest: 2020-12-12 19:11:55 +0000
    Newest: 2020-12-17 14:08:03 +0000
    
    Pending: 1
    Oldest: 2020-12-18 14:08:03 +0000
    Newest: 2020-12-18 14:08:03 +0000
    
    
    Plugin Support fevered – a11n

    (@fevered)

    Thanks for that! What I’d recommend here is to see if this is caused by either a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Plugin Support Denys Zaikin

    (@zdenys)

    @benattenborough we haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘All Products block long term cached’ is closed to new replies.