You are here

function google_analytics_counter_cache_time in Google Analytics Counter 7.2

Same name and namespace in other branches
  1. 7.3 google_analytics_counter.module \google_analytics_counter_cache_time()

Sets the expiry timestamp for cached queries. Default is 3 days.

Return value

The UNIX timestamp to expire the query at.

2 calls to google_analytics_counter_cache_time()
GAFeed::query in ./GAFeed.lib.inc
Public query method for all Data Export API features.
google_analytics_counter_update_path_counts in ./google_analytics_counter_data.inc
Find how many distinct paths does Google Analytics have for this profile. This function is triggered by hook_cron().

File

./google_analytics_counter.module, line 287
Basic functions for this module.

Code

function google_analytics_counter_cache_time() {
  return time() + variable_get('google_analytics_counter_cache_length', 259200);
}