In the main index.php file, there is the following lines:
$hc = $_zp_current_image->get('hitcounter')+1;
$_zp_current_image->set('hitcounter', $hc);
I am working on a plugin that keeps track of the most popular weekly and monthly images, and have added extra DB fields hitcounter_week and hitcounter_month. I had initially incremented these counters from a function in my theme file, but when the static_html_cache plugin is enabled, the 'normal' hitcounter is incremented (because it is called from index.php) but the other hitcounters are not.
Is there a way to hook into a page load before the static_html_cache plugin gets onto it?
Comments