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

Large quantities of embed-cookies-{uid} are being created, but not deleted? #152

Open
tim-digitalastronaut opened this issue Apr 18, 2024 · 1 comment

Comments

@tim-digitalastronaut
Copy link

tim-digitalastronaut commented Apr 18, 2024

I've recently run into issues where no user sessions were being created on the server due to the fact that the /temp folder used up all available memory. After inspecting the contents of the folder, we noticed a huge quantity (0.5 mln) files names embed-cookie-{uid}.txt.

After reviewing the code for your plugin, and after taking a look at the \embed\src\Http\CurlDispatcher.php file's constructor, it would seem that this is the source of the issue. I'm assuming that these .txt files are being created in the temporary storage, but are never being deleted, or maybe only after a very long time?

For now we've cleared out the excess of files in our /temp folder. But obviously we'll encounter the same issue again in the foreseeable future.

Edit: I believe the issue is related to one of the dependencies (oscarotero/embed).

@reganlawton
Copy link
Member

This would be something discussed with the core packages maintainers embed/embed as you noticed with your EDIT.

The issue itself can be maintained via a cron or such as well. The issue is if I start patching in very update the core package does it'll become a full time job. I only support this plugin and the others in the little free time I have, as I have moved from CraftCMS into a startup that I helped built.

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

No branches or pull requests

2 participants