I need to cache file listings generated by FileLister. In most cases I use getPage, which offers caching, but I can't manage to cache totalVar value. I put snippet output to a placeholder with toPlaceholder. I tried getCache too but with the same result.
How should it be made the proper way?