Whats is the best way to check if I have setup caching correctly for TastyPie? I have followed the documentation on this:
In settings added this:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'TIMEOUT': 60
},
'resources': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'TIMEOUT': 60
}
}
In my resource added:
class IncentiveResource(ModelResource):
class Meta:
queryset = Incentive.objects.all()
resource_name = 'incentive'
allowed_methods = ['get']
always_return_data = True
cache = SimpleCache(cache_name='resources', timeout=10)