Author: batiste.bieler
Date: Sat Mar 7 05:07:05 2009
New Revision: 394
Modified:
trunk/pages/templatetags/pages_tags.py
Log:
Fix issue 66
Modified: trunk/pages/templatetags/pages_tags.py
==============================================================================
--- trunk/pages/templatetags/pages_tags.py (original)
+++ trunk/pages/templatetags/pages_tags.py Sat Mar 7 05:07:05 2009
@@ -130,14 +130,7 @@
return {'content':''}
if lang is None:
lang = get_language_from_request(context['request'], page)
- if hasattr(settings, 'PAGE_CONTENT_CACHE_DURATION'):
- key
= 'page_url_pid:'+str(page.id)+'_l:'+str(lang)+'_type:absolute_url'
- url = cache.get(key)
- if not url:
- url = page.get_absolute_url(language=lang)
- cache.set(key, url, settings.PAGE_CONTENT_CACHE_DURATION)
- else:
- url = page.get_absolute_url(language=lang)
+ url = page.get_absolute_url(language=lang)
if url:
return {'content':url}
return {'content':''}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---