The website_user_action record (pagevisit) is not getting created when fullPageCaching is enabled.
Tested by the following steps:
Enable the fullPageCaching feature
Make sure user tracking is enabled in System settings > User tracking.
Open the database table psys_website_user_action, sort it by datecreated and keep track on every page visit / refresh.
First test: Log in the preside admin ( This will freeze the fullPageCaching ).
Visit the homepage, and check the database table. A record will be created.
Every refresh of the page will have a corresponding website_user_action record.
Second test: Logout the preside admin or check in incognito.
Visit the homepage, and check the database table. No record being added.
This issue affects the following rules engine expressions:
User has visited a page a number of times
User has visited web page(s)
User last visited a page