Images not getting cached

Hey guys,


just noticed on our site that some only some images are being cached. We are using 3.20.1 currently.



Is there any reason mysource would not expand image urls to the static web path? the requested url's are in the form of "./?a=xxx"





Caching is enabled for the entire site and all the images that are not caching have been set to "yes" for the unlimited access option. All pages/images are public accessable and live.



Thanks

Owen





*edit site is www.kickstand.co.nz if you were wondering

Those ./?a=xxx style URLs are not expanded everywhere. When they are not expanded, where are you putting them (design, standard page content, news items etc)?



Hi Greg.

It just seems to be images inserted into news items with the WYSIWYG editor. The pages also have a paint layout applied to them. Images linked in the design are working fine.



Owen

News items don't do their own replacements because they are not as advanced as pages (they don't have a bodycopy). But I believe paint layouts applied to the news items solve this problem by doing the replacement for them from versions 3.12 onwards.


I can't find the forum thread or newsletter that describes the solution, so we may need to wait until someone who remembers (or has quick access to a system to test it) can answer.


Yes, I can confirm that this is correct. We are on 3.18.8 at PUC and use paint layouts with news items, and they do correctly replace the ./?a= style links. :)


Hi Nic,

Can you elaborate a little on how you are using paint layouts to do this?

We have a paint layout on the pages in question already but are just using the %asset_contents% keyword. Am I missing something obvious?


Thanks
Owen

We are using paint layouts along with New Item keywords such as %asset_attribute_body% which I assume is why they are being replaced. Using %asset_contents% probably won't do the same thing.


huh, so simple.

Worked a treat, thanks Nic

[quote]huh, so simple.


Worked a treat, thanks Nic[/quote]



Not a problem, glad to help.