Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2013 at 12:03 UTC
Updated:
17 May 2013 at 10:42 UTC
Since #1814080: Apachesolr sort block fills cache_block table without stopping has been committed, the sort block uses a custom caching.
Unfortunately the generated cache id doe not work for all multilingual settings. If you use a path prefix for language switching, everything is OK. But if you switch the language based on the domain, the cache ids are the same across different domains / languages.
The fix simply adds the current language to the cache_id.
In addition I fixed a potential warning that cache_id is not declared because it has been declared within an "if" statement.
| Comment | File | Size | Author |
|---|---|---|---|
| multilingual_sort_block.patch | 3.84 KB | mkalkbrenner |
Comments
Comment #1
mkalkbrennerI set this to critical because a click on a sort link takes the user to a different domain.
Comment #2
nick_vhLooks good - ready to go in
Comment #3
pwolanin commentedWhy are we even caching that block - it doesn't seem worth the hassle?
Comment #4
nick_vhClosing as duplicate of #1970648: sort block breaks multilingual sites
Comment #5
mkalkbrennerDuplicate of itself?
Comment #6
cspitzlayBlock caching is now gone altogether (see #1814080: Apachesolr sort block fills cache_block table without stopping). So this patch is no longer pertinent.