Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Brohäll 294 posts 560 karma points c-trib
    Sep 26, 2011 @ 10:51
    Anders Brohäll
    0

    Location of cached remote images when using <ImageBaseDir>.

    Hi,

    Is it possible to set the location of cached remote files?

    Im using the ImageBaseDir config key, set to something like <ImageBaseDir>http://www.domain.ext/folder/</ImageBaseDir>;.

    What happens is that the file-cache is located in /../ (the folder below the web root). Unwanted for sure.
    So. Can i force it to a different folder, like /data/www.domain.ext/ ?


    Anders

  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Sep 26, 2011 @ 11:00
    Douglas Robar
    0

    Hi, Anders,

    You can't set the location of the cached files, but you have stumbled onto a bug in 2.5.2 when using remote domains. The cached images should be stored in /data/cached/www.domain.ext but what happens with the bug is that when the <ImageBaseDir> contains the http:// the cached image goes in the same folder as the imagegen.ashx file rather than the /data/cached/yourdomain folder.

    A workaround would be to include the http://domain as part of the ?image= querystring parameter. Or to use a url rewrite rule to add the http://domain to the querystring without having to specifically add it to the querystring for each imagegen.ashx request.

    cheers,
    doug. 


  • Anders Brohäll 294 posts 560 karma points c-trib
    Sep 26, 2011 @ 11:06
    Anders Brohäll
    0

    Ok, i used the ?image= querystring parameter earlier and that was fine.

    However it would be great to be able to use the BaseUrl.
    Whats the timeline for getting it fixed?

    Anders

  • Anders Brohäll 294 posts 560 karma points c-trib
    Dec 19, 2011 @ 11:09
    Anders Brohäll
    0

    I see that it is solved in 2.5.6.
    Excellent work!

Please Sign in or register to post replies

Write your reply to:

Draft