ted
ted

Reputation: 211

APC doesn't free memory

Since I installed the APC and am using it for a file upload with progress display, the memory use of my server exploded, it seems that every uploaded file keeps in the memory forever.

Upvotes: 1

Views: 1082

Answers (1)

Mark Baker
Mark Baker

Reputation: 212422

That's the problem with "persistent" caches.... they're persistent.

You can set a "timeout" for APC entries when you store the entry, or you can manually remove any entry when it is no longer required. APC will also be cleared if the server is restarted.

In this case, you should probably remove the entry in your upload handling code.

Upvotes: 2

Related Questions