-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Remove Sonata Cache #1096
Comments
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@VincentLanglet can you add this in https://github.com/sonata-project/SonataPageBundle/milestone/1 please :) |
I did some brain storming about Removing Sonata Cache(Bundle) from Page Bundle.
i don't know yet how it is controlled which pages/blocks are cached in which way. I need to say that i didn't used page bundle yet, so that's just my thoughts of uninvolved. |
what do you mean "Make Page Bundle uses PSR-6"? implement something or just make it uses : https://symfony.com/doc/current/components/cache.html#cache-contracts-versus-psr-6 ? |
yeah that's another interface i could bind check. |
if you prefer do this ticket in 2 part it's fine, I guess it's better to review :) can you open a DRAFT pull request when you do something :) |
one thing i didn't found yet, is it configurable what pages/blocks are cached and how long? or should i try to add such option? (per page/block?) |
I guess it's fine you add the option, if it's easiest for you :) just remember that you need to add a default value for whom didn't add any configuration. |
there is also https://twig.symfony.com/doc/3.x/tags/cache.html for doing caching of block/page segments i need to understand the structure of block/page in sonata better, but in theory we could use symfony cache to check if a rendered block/page already exist, so no database is needed for blocks and pages with non static id? then for some static blocks we could use twig cache too (if needed?) and last thing we could add esi/ssi cache, which could use the symfony cached rendered data too. For the symfony Cache, it shouldn't be a problem to invalidate the data over their tags. otherwise it might be cleaner to remove the caching from this Bundle, and add it alter again via other features (above) some checking in the code, there are some hard coded dependencies that can made into soft-coded ones (like disabling the cache manager) or not defining the services. PageBundle should work even without caching. We could try that first before removing Caching in Major version. |
Remove cache part 1 was solved here: #1427 🥳 it's just missing remove the code from 4.x branch 😃 |
should i wait until SonataCI does merge 3.x into 4.x? |
I did a PR for removing Cache in 4.x #1430 i can rebase the PR if needed |
Yes, better to wait for the merge. |
We should use symfony cache instead.
Even the doctrine cache was just deprecated in favor of symfony cache:
https://github.com/doctrine/DoctrineCacheBundle#deprecation-warning
The text was updated successfully, but these errors were encountered: