Check session variable before delivering cached page

>Everything is already working, I just need to move those 3 lines of code somewhere they will always be executed before page is loaded from cache. I’ll start digging in the shopware code today to find such a place and hope it exists.

You can’t find it, it contradicts the http-caching principle.

http://joxi.ru/ZrJY9azC9VJVOA

AppCache check is cache source existed on cache dir, in case yes - fetch cache and send to customer. In this case shopware code haven’t been executed at all.

>User does not do any kind of registration. The user data is imported to a custom table and is part of shopwares database. So we are using table custom_users and checking if there is an entry that matches the 3 columns that were submitted with the “login” request.

I’m not really understand why you need to do such login process more then once? If user once logged in into 3rd part service - you can be sure it is the same user, no?