You are here

function google_analytics_counter_cache_time in Google Analytics Counter 7.3

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

Sets the expiry timestamp for cached queries. Default is 1 day.

Return value

The UNIX timestamp to expire the query at.

2 calls to google_analytics_counter_cache_time()
GoogleAnalyticsCounterFeed::query in ./google_analytics_counter_oauth2.lib.inc
Public query method for all Core Reporting 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 319
Basic functions for this module.

Code

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