plugin
upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
1
2
3
|
$def with (s, n)
$if s: $s[slice(n)] $(s[slice(n, None)] and "...") |
Debug Stats
SUMMARY
total: {'count': 0, 'unaccounted': 0.046769142150878906, 'time': 0.082216024398803711}
memcache.get: {'count': 5, 'time': 0.0046317577362060547}
infobase: {'count': 2, 'time': 0.028669118881225586}
memcache.set: {'count': 1, 'time': 0.0012109279632568359}
memcache.get_multi: {'count': 1, 'time': 0.00093507766723632812}
Details
memcache.get 0.00128197669983
{'hit': True, 'key': u'/macros/TruncateString'}
memcache.get 0.00102806091309
{'hit': False, 'key': 'd/macros/TruncateString'}
infobase 0.0136752128601
{'path': '/openlibrary.org/versions', 'data': {'query': '{"limit": 5, "key": "/macros/TruncateString", "offset": 0}'}, 'method': 'GET'}
memcache.get 0.000869989395142
{'hit': False, 'key': 'd/macros/TruncateString'}
memcache.set 0.00121092796326
{'key': 'd/macros/TruncateString'}
memcache.get_multi 0.000935077667236
{'found': 1}
memcache.get 0.00113081932068
{'hit': True, 'key': u'/type/macro'}
infobase 0.0149939060211
{'path': '/openlibrary.org/versions', 'data': {'query': '{"limit": 1, "key": "/macros/TruncateString", "offset": 0}'}, 'method': 'GET'}
memcache.get 0.000320911407471
{'hit': True, 'key': 'inlibrary.libraries-hash'}