Skip to content

Instantly share code, notes, and snippets.

@cotto
Created November 3, 2011 01:55
Show Gist options
  • Save cotto/1335566 to your computer and use it in GitHub Desktop.
Save cotto/1335566 to your computer and use it in GitHub Desktop.
diff --git a/services.module b/services.module
index 3ab2a2e..f67d990 100644
--- a/services.module
+++ b/services.module
@@ -270,7 +270,8 @@ function services_get_resources($endpoint_name = '') {
$cache_key = 'services:' . $endpoint_name . ':resources';
$resources = array();
- if (($cache = cache_get($cache_key)) && isset($cache->data)) {
+ $disable_cache = variable_get('services_disable_resource_cache', 0);
+ if (!$disable_cache && ($cache = cache_get($cache_key)) && isset($cache->data)) {
$resources = $cache->data;
}
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment