Created
November 3, 2011 01:55
-
-
Save cotto/1335566 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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