Changeset 3702 in products


Ignore:
Timestamp:
Jul 16, 2013 11:43:13 AM (11 years ago)
Author:
potar
Message:

The cache key of portal tabs was updated

Location:
quintagroup.dropdownmenu/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/docs/HISTORY.txt

    r3658 r3702  
    22========= 
    33 
    4 1.2.13 - April 18, 2013 
     41.2.13 - July 16, 2013 
    55 
    66* Updated condition for 'mobileMenu' [kroman0] 
     
    1717 
    1818* Use getRemoteUrl for links [kroman0] 
     19 
     20* The cache key of portal tabs was updated (thanks: richardc). 
     21  [potar] 
    1922 
    20231.2.12 - April 02, 2013 
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/viewlets.py

    r3661 r3702  
    5151# this cache key does not take in account expressions and roles settings 
    5252def tabs_cache_key(f, view, site_url): 
    53     return site_url + str(time() // (60 * 60)) 
     53    portal_state = getMultiAdapter( 
     54        (view.context, view.request), 
     55        name=u'plone_portal_state', 
     56    ) 
     57    language = portal_state.locale().getLocaleID() 
     58    return site_url + language + str(time() // (60 * 60)) 
    5459 
    5560 
Note: See TracChangeset for help on using the changeset viewer.