Skip to content

Adding IdentityInterface (cache invalidation)#46

Open
medmek wants to merge 3 commits intomageplaza:masterfrom
medmek:medmek-patch-2-identity
Open

Adding IdentityInterface (cache invalidation)#46
medmek wants to merge 3 commits intomageplaza:masterfrom
medmek:medmek-patch-2-identity

Conversation

@medmek
Copy link
Contributor

@medmek medmek commented Nov 12, 2019

Hello,

I noticed some slider/banner data weren't showing changes right away after save (had to flush cache manually)

Models needs to implement IdentityInterface in order to get the native cache invalidation ($_cacheTag and function getIdentities() are well implemented already but see vendor/magento/framework/App/Cache/Tag/Strategy/Identifier.php:24)

Block/Slider.php :
Views that display that content needs, according to doc, to implement the IdentityInterface
Dev Docs #invalidate-public-content

Banner model should implement IdentityInterface in order to get the cache invalidation in this model (eventhough  $_cacheTag and function getIdentities() are implemented already (see vendor/magento/framework/App/Cache/Tag/Strategy/Identifier.php:24)
Slider model should implement IdentityInterface in order to get the cache invalidation in this model (eventhough  $_cacheTag and function getIdentities() are implemented already (see vendor/magento/framework/App/Cache/Tag/Strategy/Identifier.php:24))
The Slider block needs to implement IdentityInterface in order to get the cache invalidation
@bdtrung
Copy link
Contributor

bdtrung commented Nov 13, 2019

Thank you for contributing the patch to fix the issue.
We are reviewing this patch and going to merge it into the master branch soon.

@medmek
Copy link
Contributor Author

medmek commented Nov 17, 2019

related issue #49

@vertic4l
Copy link

vertic4l commented Aug 6, 2021

Guys, that stuff is open since years. Dafuq are u doing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants