You are here

function _kml_feed_check_cache in KML 5

Same name and namespace in other branches
  1. 6 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 591
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(unserialize($cache->data));
  }

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