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

Remove unused cache #2370

Closed

Conversation

franmomu
Copy link
Collaborator

@franmomu franmomu commented Dec 9, 2021

I was taking a look at not using cache from metadata factory and bump into this.

It was added 56e4f69 because of #58. I guess that was added because at that time the key for storing metadata was created like that based on:

https://github.com/doctrine/orm/blob/b67d400e940b7bd0c99e37b2f6112f8dc1ac7710/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php#L165-L174

The way the key is generated has been changed lately when supporting PRS-6 because the cache key can't contain \, so not sure if this is needed anymore.

I'll try to see if I can find out if this is really needed, but since I don't use the extension any comment is appreciated.

@codecov-commenter
Copy link

Codecov Report

Merging #2370 (699f897) into main (4d9bf31) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #2370   +/-   ##
=========================================
  Coverage     81.06%   81.06%           
+ Complexity     3087     3086    -1     
=========================================
  Files           145      145           
  Lines          7905     7906    +1     
=========================================
+ Hits           6408     6409    +1     
  Misses         1497     1497           
Impacted Files Coverage Δ
src/Tree/Strategy/ORM/Closure.php 97.92% <ø> (-0.04%) ⬇️
src/Tree/Strategy/ORM/Nested.php 96.50% <0.00%> (+0.01%) ⬆️
src/Tree/Strategy/AbstractMaterializedPath.php 90.45% <0.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d9bf31...699f897. Read the comment docs.

@franmomu
Copy link
Collaborator Author

Closing in favor of #2390

@franmomu franmomu closed this Dec 27, 2021
@franmomu franmomu deleted the remove_unused_cache branch December 27, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants