You are here

function _kml_feed_check_cache in KML 6

Same name and namespace in other branches
  1. 5 kml.module \_kml_feed_check_cache()
2 calls to _kml_feed_check_cache()
theme_kml_feed in ./kml.module
Views plugin that displays the KML feed for views
_kml_feed_check_access in ./kml.module

File

./kml.module, line 585
KML Module

Code

function _kml_feed_check_cache($nodes, $attributes, $cid, $changed) {
  $cache = cache_get($cid);
  if ($cache && $cache->created > $changed) {

    /* Cache is good, return it */
    _kml_send_feed($cache->data['output']);
  }

  /* Not in the cache, or it's out of date - rebuild. */
  _kml_feed($nodes, $attributes, $cid);
}