Fork me on GitHub

meta tag?  Bottom

  • A customer suggested I add this meta tag to eliminate issues with his machine caching things like images he's uploaded.

    He is using it in reference to a custom module we've developed, in which his avatar is shown. I believe the circumstances were that he updated his avatar in the Avatar module, then went back to his page in the custom module, which still showed the old avatar.

    I haven't really delved into the caching system related to our custom module. Is there a built in way to handle this? If not, will using his suggested meta tag interfere with the Zikula caching system in any way?

    Thanks.
  • OK, should have known that the tag I entered as a "subject" would get scrubbed. It's

    Code

    < meta http-equiv="no-cache" >




    Edited by bronto on Sep 15, 2010 - 04:10 PM.
  • Maybe it would be better to ask this question a different way, addressing the reason the meta tag suggestion was made.

    I have a site that lists a directory of people who are not necessarily members of the site. For those that are members, we would like them to upload an avatar using the Avatar module, and these avatars show up next to their directory listing. We have a amateur programmer as a tester, and he uploaded an avatar for himself. He reported that his listing still had his old avatar showing, and he then made the suggestion to use the nocache meta tag.

    So as a related question, is there some other way to "fix" this problem using the templating system and Zikula's built in caching system. I know that a properly written module will show the new data when it is updated, as as far as I know the Avatar module did this. But the Directory module wouldn't know that the avatar had been updated, would it? If not, is there any way to *tell* it that it had been updated? I should point out, for anyone who doesn't know, that the avatar module uses the same file name for a given user regardless what the original file name was. In other words, my avatar will always have the file name "pers_1234.jpg" no matter what the original uploaded file was called.

This list is based on users active over the last 60 minutes.