Hits Around Cache


Andy Hebrank

3rd Party (Free)

MIT License

EE Version Support

  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



I needed a simple way to count page hits over a certain timeframe, and do it accurately from behind Varnish caching. Using Google Analytics would be a good alternate solution, but this little module seems to be working so far.

The module uses a snippet of javascript to POST hits to a the hit counting module in the control panel, which registers the time of each hit.  To try to prevent this table from growing too large on a busy site, there’s also a summarization step that reduces data to hits per page, by day.

Template tags then let you find number of hits for a page, or produce a list of top N pages.  Future requirements may expand functionality as needed.

See https://github.com/ahebrank/hits_around_cache for more details.

This entry was created January 5, 2015, 10:26 am.
This entry was last updated January 5, 2015, 10:27 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!