I am looking for the most effective way to provide my application’s users with a list of all files in the GD repo. For the moment we can only craw folders one by one and retrieve the list of files and subfolders individually. This adds up to a lot of requests and subsequently - long execution times.
It looks like the best way to go for the moment is to cache the list of files locally and only refresh it periodically or when needed.
The get_storage_info method would be useful for determening when to refresh the cache. We can compare the total storage used and the total number of files to the cached version and only update when there are changes. However, the only value that seems to change when a new file is uploaded is the available space - everything else just returns NULL.
So, the actual questions:
- Why does the storage info method return nulls
- do you have any ideas of other ways to check for changes (quickly) so I can update the cache
Thanks in advance!
any updates on this?