is the cached image supposed to be in files/mathfilter ? I could not find any after enabling the option. Thanks!

Comments

dwees’s picture

It should be, however it requires curl support on your server so it may be silently failing. I think I found a work around using fopen and fclose, etc... but haven't included it yet. Can you confirm that you have the curl extension for php enabled on your server (it almost always is).

Dave

xjs’s picture

I am on a shared hosting, and just checked /lib and /usr/lib/php/extensions, there's no curl stuff. I am not a php person, so let me know if I should look at something else. Thanks.

dwees’s picture

It is possible to replace the curl stuff using fopen and fclose. I'll look into it if I ever get a chance. However this isn't something I can work on immediately (but I know the solution is really simple).

Basically idea is to fopen the url (for read only) that we currently curl, then make sure to close the file after we are done.

Dave

dwees’s picture

Status: Active » Closed (won't fix)

It turns out that on some servers, fopen and fclose are disabled for external files, so I'm going to have to mark this as "won't fix" since I won't be able to come up with a caching solution that works for everyone. However, I will remember that I should add a message so that the curl option doesn't 'silently' fail.