-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[RFC][WIP][2.3] Cache Bundle #5903
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
Conversation
$cacheDrivers = $config['cache.drivers']; | ||
$cacheInstances = $config['cache.instances']; | ||
|
||
$this->manager = new $managerClass(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not make sense. You should use the container to configure the manager and pass a CacheManager to the constructor.
Since all the job is now done by Cache\Cache.php I'm not sure if we need to have the CacheBundle\Factory\CacheFactory.php file as it's just plain useless atm |
|
||
{% block panel %} | ||
<h2>Cache panel information</h2> | ||
{% endblock %} No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementing a fake template for the data collector before implementing any cache profiling seems really weird to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to know what I'll need in profiler before making it. If my time will allow it, I'll do it tomorrow or during the next weekend.
@dlsniper indeed, there is no reason to have this CacheFactory |
There is also a CacheBundle implementation pending here: #3225. |
This is a bit of a mess right now, especially on the config part but I wanted to get it work again. More changes soon. |
Closing as there are 4 opened PR on this topic. I would prefer that we first discuss the interface and what we want before starting coding. I suggest 8000 that this discussion happens on the Symfony dev mailing-list. Also, we need to discuss what to do with the current discussion on the FIG group mailing-list. |
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #1513, #3211
License of the code: MIT
Documentation PR: ~
Todo:
Hello,
This is the bundle that is 'missing' from the previous PR and it is also with the Request For Comments status.
I'll try and add the remaining things from the TODO list in the specified order.
At least for now I don't care about coding style breaks and so on, I think it's the least important thing right now (don't worry, I'll fix everything, if anything, before merging), so please don't comment about it!
As a last thing, I really want to finish this in time for 2.2 release/feature freeze so if you want to help me out, any and all PRs are welcomed.
Thank you!
Configuration:
Demo available here: http://sf2demo.rodb.ro/app_dev.php/