Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elgentos/localstorageversioning

Highly experimental extension to clear localStorage along with Magento 2's static versioning
https://github.com/elgentos/localstorageversioning

magento2 magento2-extension magento2-extension-free magento2-module

Last synced: about 1 month ago
JSON representation

Highly experimental extension to clear localStorage along with Magento 2's static versioning

Awesome Lists containing this project

README

        

# DEPRECATED
# DEPRECATED
This extension turned out to solve one issue, which is mentioned here in the [magento/magento2](https://github.com/magento/magento2) repo; [Huge "product_data_storage" in localStorage hangs the shop](https://github.com/magento/magento2/issues/17813).

Please update to Magento >= 2.2.8 or >= 2.3.0 or apply the patch mentioned in that issue.

# Elgentos_LocalStorageVersioning

We've encountered some weird bugs where flushing the localStorage resolved issues (particularly in the checkout but also with the gallery on product pages). These bugs were hard to diagnose and only occurred on machines that have visted the site before.

This little extension adds a Javascript file that checks the deployed version. If the deployed version (found in `/static/deployed_version.txt`) is newer than the last versioned localStorage (which is saved in a cookie), the localStorage is cleared. This should alleviate some issues in certain cases.