Re: Feature request: Image Proxy
Reply #31 –
Ah ... I probably attached the wrong file !
I'm working on an update (that will help with performance in some conditions) so will repost it soon.
Re: Feature request: Image Proxy
Reply #32 –
Lets try this one.
I made a few changes which I need to also put in the version for 1.1
- Added a max size value, so it will not attempt to cache images over X MB in size. This will not always work, but when it does its nice.
- Moved the fetch of the image out of parsebbc and moved it to when its requested from the server. This prevents the page from blocking
- The filename was being leaked in the headers, so I fixed that
- Disable browser cache if the fetch of the image failed. This way if at a later time it does get the image it will show in the browser, and at that point proper cache headers are also set.
Re: Feature request: Image Proxy
Reply #33 –
The addon installs without errors, but I still don't see the settings for this addon
Re: Feature request: Image Proxy
Reply #34 –
LOL .. well I removed it again until I can figure out whats going on ... It works fine on my local but I must have set something manual like for that to have worked or its some php version issue error. Anything in your site or server error log?
Re: Feature request: Image Proxy
Reply #35 –
I use php 5.6, in elkarte error log nothing that could be related to this addon. PHP error log is empty, apache error log displays some errors like
[Thu Mar 02 06:26:26.030611 2017] [proxy_fcgi:error] [pid 4387:tid 140574824826624] [client 66.249.64.252:61046] AH01071: Got error 'Primary script unknownn'
tried also with php 5.4 but no errors
Re: Feature request: Image Proxy
Reply #39 –
OK before I run off for a bit ... replace the ImageCache.class.php file in your subs directory with this one .. it should stop those errors.
Re: Feature request: Image Proxy
Reply #40 –
Just one question, this addon should create a folder to store cached images, am I right? Which is the path to the cached mages? I cannot find it on my forum
Re: Feature request: Image Proxy
Reply #41 –
It saves them in your standard cache directory ... they will be all start with img_cache_XXXXXXXXX If you want to clear them use the function under routine maintenance -> clear image cache, don't delete them on your own, or if you do, run the task as well since the db needs to be updated.
I see its still tossing an error on that one page .. so I've attached a new one for test.