You are here

function google_analytics_reports_cache_time in Google Analytics Reports 7

Same name and namespace in other branches
  1. 6 google_analytics_api.module \google_analytics_reports_cache_time()

Sets the expiry timestamp for cached queries.

Default is 3 days.

Return value

The UNIX timestamp to expire the query at.

1 call to google_analytics_reports_cache_time()
GAFeed::query in ./GAFeed.lib.inc
Public query method for all Data Export API features.

File

./google_analytics_api.module, line 166
Implements the API through which Google Analytics data can be accessed.

Code

function google_analytics_reports_cache_time() {
  return time() + variable_get('google_analytics_reports_cache_length', 259200);
}