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

Fix a recursive find of directory argument being itself recursively browsed #164

Open
wants to merge 1 commit into
base: 1.0
Choose a base branch
from

Conversation

McLone
Copy link

@McLone McLone commented Dec 21, 2021

Question Answer
Type Bug
Target version 1.0
BC breaks no
Doc needed no

Hi !
On several of our "eZPlatform 2.5 + Legacy bridge" apps, with a purge_type "local" (no varnish / http), we sometimes stumbled on a 512Mo memory_limit reached when the cache is "old enough" (read "having lots of files") and the site owner edited some content in legacy back office. The error was always triggered on vendor/symfony/symfony/src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php:81

This PR fix the memory problem, which can be replaced by a "Maximum execution time of 30 seconds exceeded" (which will be harder to fix as it's only the time needed by the filesystem to remove its files).

Regards,
Marc

TODO:

  • Implement feature / fix a bug.
  • Implement tests + specs and passing ($ composer test)
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@sonarcloud
Copy link

sonarcloud bot commented Dec 21, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

Successfully merging this pull request may close these issues.

1 participant