Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.4
Component:
File downloads
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2011 at 10:13 UTC
Updated:
18 Feb 2011 at 11:08 UTC
I'm running an ubercart installation with some specificities (namely, ~100000 files in ~20 subdirs, some of the subdirs having ~8000 files in them). My users are only granted a subset of that files (depending on some attributes) of course, not the whole subdir.
uc_file_refresh() doesn't scale well on such configurations. Either hitting php memory limit (when 128m), or 504 gateway timeout when the drupal installation is behind a reverse proxy. Can it be transformed into a regular drupal batch job ?
Comments
Comment #1
landry commentedAs a sidenote, it'd be good if uc_file_refresh() wasn't called unconditionally when store/products/files is opened, a button launching the refresh would be nice.
Comment #2
landry commentedOh, and same for uc_file_feature_form() which calls uc_file_refresh() for the autocompletion. Makes it quite impossible to add a file feature to a product.....
Comment #3
longwaveDuplicate of #647248: _uc_file_gather_files needs to be fixed (or needs config) and #750016: Large numbers of file downloads for a user causes memory exhaustion in user edit form.