18.03.2017, 15:43
For any version above R40 (R41-2 included), you'll need to update the script according to the tutorial I linked you to. For example, function cache_get_data was removed and cache_num_rows() macro or cache_get_row_count function should be used instead.