Collections functions
General functions
Render functions
Theme permission functions
Resource functions

copy_hitcount_to_live()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7101 to 7110

Definition

 
function copy_hitcount_to_live()
    {
    
# Also update the resource table
    # Also update the resource table
    # greatest() is used so the value is taken from the hit_count column in the event that new_hit_count is zero to support installations that did not previously have a new_hit_count column (i.e. upgrade compatability)
    
ps_query("update resource set hit_count=greatest(hit_count,new_hit_count)");

    
# Also now update resource_node_hitcount())
    
ps_query("update resource_node set hit_count=new_hit_count");
    }

This article was last updated 5th October 2022 14:05 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.