Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding IdentityInterface (cache invalidation) #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Adding IdentityInterface (cache invalidation) #46

wants to merge 3 commits into from

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