Ensure that the system information view is only cached for 2 minutes
authorMagnus Hagander <magnus@hagander.net>
Thu, 17 Jun 2010 12:15:27 +0000 (14:15 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 17 Jun 2010 12:15:27 +0000 (14:15 +0200)
pgweb/core/views.py

index 970aaa3c1439da77489c0dbd29201329dc87624a..36dfaf29e6bebf12043acad70cf08143d24be6f5 100644 (file)
@@ -93,6 +93,7 @@ def organisationform(request, itemid):
                        })
 
 # Basic information about the connection
+@cache(minutes=2)
 def system_information(request):
        return render_to_response('core/system_information.html', {
                        'server': uname()[1],