Welcome! Log In Create A New Profile

Advanced

Using a POST variable as a cache key

Posted by caisys 
Using a POST variable as a cache key
December 11, 2019 11:44AM
Hello,
I am caching post requests that bring the same results. I am using the request body as part of the cache key.
The problem is one of the pot variable is a session id that changes with every session. I would like to use a specific post variable as part of the cache key.

Is it possible to read this value and set it as a variable and then use it in the cache key?
Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready