Magento 2
  • Personalization for Magento 2
  • Installing
  • Disconnecting
  • Uninstalling
  • Getting Started
  • Configuring
  • Hyvä Theme
  • Guides
    • Migrating to Magento2
    • Upgrading to >= 4.0.0
    • Varnish & Full-Page Caches
    • Advanced User Guide
    • Managing Blocks
    • Overriding or Extending Functionalities
      • Overriding Product Data
        • Excluding Products
        • Customising Pricing
        • Customising Categories
        • Resizing Images
      • Overriding Customer Data
    • Console Commands
    • Tagging Providers
  • Features
    • Product data caching
      • Built-in caching
      • Database caching
    • Variations (Configurable Products)
    • Add to Cart
    • Indexer
      • On 7.x
      • On 5.x and 6.x
      • On 4.x
      • On 3.x
    • Customer Group Pricing
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency (Exchange Rates)
    • Marketing permission and GDPR compatibility
    • Content Staging & Special Prices
  • Integrations
    • Using Yotpo
  • FAQ
  • Developing & Contributing
  • Visit Nosto
  • Issues
  • Releases
  • Addons
    • Multi Source Inventory (MSI)
      • Installing
      • Uninstalling
      • Configuring
    • Category Merchandising (CM 1.0)
      • Installing
      • Uninstalling
      • Configuring
      • Guides
        • Translating Frontend Strings
        • PWA Implementation
        • Using Elasticsearch
        • Segmentation
        • Overriding or Extending Functionalities
          • Customize Query Parameters
          • Customize Page Size Limit
          • Customize Exclude Filters
        • Debugging
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Product data caching

Database caching

PreviousBuilt-in cachingNextVariations (Configurable Products)

Last updated 3 years ago

Was this helpful?

From version 4.0.0 Nosto uses a new table used to store and cache product data rather than build it on the fly. For version >= 5.0.0 please refer .

The cache contains the serialized Nosto product. As Nosto tags, the current product's metadata on the product pages, the cache ensures that the product is simply read from the cache and does not lead to redundant MySQL queries.

Cache invalidation

A new cron job is added as a fallback mechanism for invalidating the cached product data. By default the cron runs every hours and invalidates cached product data that has been updated more than 4 hours ago. The default maximum amount of invalidated products in one run is 1000. Invalidated products are rebuild and compared against the current cached product data.

You can easily change the default look back interval and the processing limit by overriding the injected values defined in di.xml.

<type name="Nosto\Tagging\Cron\InvalidateCron">
    <arguments>
        <argument name="intervalHours" xsi:type="number">4</argument>
        <argument name="productLimit" xsi:type="number">1000</argument>
    </arguments>
</type>

If want to disable the invalidate cron you can set the productLimit to 0.

Remember that you must run bin/magento setup:di:compile for any changes done in the configuration files to take affect.

This cron job is removed in version >= 5.0.0 as the functionality is redundant when using Magento's built-in caching.

to this article