Search the Community
Showing results for tags 'buildFilename'.
Found 1 result
Hi all, Keen on processwire. Thanks a lot for this thing! But here is my issue: I have a lot of pages that need to be cached. But the content on this pages depends on what user has in his session's variable (not a logged-in user, just a guest but with a different session's variable value). So I need to add this session variable as a cache key before page will have been rendered and created the cache file. How to do so? I tried to find the solution, but there is no Hooks in wire/core/CacheFile.php So, my thoughts: 1. add the Hook for method "buildFilename" in wire/core/CacheFile.php to have the possibility to change filename for cache file (or at least to add custom cache key for filename) or 2. somehow do it using addHookBefore('Page::render' For example: let's assume we have a special param like $options['custom_cache_key'] and we can change it inside Hook method (by the way how to do that?)