Fork me on GitHub

how to clear page cache for all languages (and themes)  Bottom

  • Hi,

    I'm playing with a multi-language site. I notice that if I switch to a different language (by using the dropdown box in the language block) after I clear the cache of a page (by using clear_cache of course), the page is not refreshed in the new language (assume it was cached in the new language too). It is refreshed in the original language.

    Examination of the pnTemp/pnRender_cache/ dir reveals that the cache-file names contain both the language and theme names which leads me to believe that the zikula engine picks up cached files by language and theme. Is it possible to clear the page's cache for all languages and themes for which it was cached? This is a function useful for users who like to toggle between different languages (arguably a rare case, but conceivable - e.g. a language learning site or translation site)

    I guess it's possible to write a custom function to compare the file names in the pnRender_cache dir with the cache id, but that's just too much hassle.

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