BTW, FYI, I test this using the AWS php-sdk-2 and it is *way* slower than using ZF1's stream wrapper. Has something to do with the way Guzzle does the HEAD check for if the file_exists.
One of the code event listeners (admin.php?code-event-listeners) you can use is init_dependencies. Inside the class/method you have that listener execute is where you would register the S3 stream wrapper.
For the size of our xf_post table we'll probably need to take a minor outage for it. I talked with Percona tonight and Vadim wasn't confident that we wouldn't have problems. I'm going to test it though to see.
We did a bunch of little modifications to the templates & EXTRAS.css but not really that much in the grand scheme of things. We did have to make a few tweaks to the core XenForo but most of our needs were later added to the core project.
ha! I wish! (y)
Yeah, that'd work too. I just threw that idea out there for you off the top of my head. I haven't written our actual script yet; that's something I'm going to try to do early next week.
So hopefully my changes will get accepted into the core, but to do this it doesn't actually need a full fledged add-on; yippee!
- Follow the changes mentioned in http://xenforo.com/community/threads/enable-streams-for-internal-external-data-paths.47011/
- Change your config to point to your...
There were just a couple of other changes that I needed to make in order for this to work.
File: XenForo_Helper_File
method: createDirectory()
This makes it so that the file being checked keeps the trailing / which is needed for the Zend_Service_Amazon_S3_Stream class to recognize that you...