function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dmitri_inetindustrydmitri_inetindustry 

authenticated sites license is triggering page views count limit

We started getting emails "Warning: Page Views Are at 93% of Your Limit", which is 93% of 500,000 page views since summer '14 release. This is impossible as most if not all our page views are coming from authenticated users, see the Help Article on this below.

https://help.salesforce.com/HTViewHelpDoc?id=sites_limits.htm&language=en_US

It says:

"A page view is a request from a non-authenticated site user to load a page associated with one of the sites within your Force.com domain or custom domain. Requests from authenticated portal users are not counted as page views."

We have a polling action that starts after users log in, users are using Authenticated Website user license. Just the past 2 months we started receiving this "warning", it wasn't happening before, must be the Summer '14 release.

We have a polling action that triggers Apex/Ajax callout every 10 seconds.

...
setInterval(function(){checkForNewMessages();},10000);
...
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.SiteUserTemplateController.checkForNewMessages}',
...

This call is counted toward the Page Views Limit, which It Shouldn't Because User is Authenticated.
ShashankShashank (Salesforce Developers) 
Requests for the following are counted as page views and could cause a spike in page views for sites:-

Your Force.com domain. eg. http://mycompany.force.com
Your custom Web address. eg. http://mycompany.com
Any page associated with site. eg. http://mycompany.force.com/mypage
Authorization Required error page. eg. http://mycompany.force.com/Unauthorized
Ajax requests. This includes Apex Remote calls also.