One more question… I’m taking advantage of the direct_output=”no” setting to have the .zip files saved to a directory, partly for populating a download link but also for cacheing purposes. I understand from one of Max’s earlier posts that caching is coming, someday.
In the meantime, is there a way I can check to see if the .zip file already exists and only if it doesn’t create the .zip file?
I see from an earlier comment that Paales created forked version which includes a check_exists function, but that doesn’t seem to have been incorporated into the official release which includes the vital files openable under Mac OS X fix.
http://ellislab.com/forums/viewreply/688168/
I found a plugin, BN Check File Exists, which does as it’s name suggests but it doesn’t include any sort of if the file doesn’t exist option.
http://barrettnewton.com/site/products/check_files_exists/
Much thanks, in advance, for any and all suggestions.
Hi Max
Thanks for replying and thanks for all your addons - how do you find all the time?!
yes, it would be test to check whether the same file is in the directory specified. {url_title}{edit_date}.zip would be a good strategy.
Of course caching the directly pushed files would be great as well, but i’m more interested in the above.
Same filename would work for the project I’ve used it on. We went with a slightly different implementation – where the archives are only built when certain member groups access the page. The creators of the site get the slow loading page (we’re building probably 10 to 20 .zip archives per page) while visitors get a quick loading version. It’s not 100% ideal from certain angles, but it gets the page loading quickly for the visitor.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.