View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002866 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2011-05-11 11:20 | 2012-12-10 13:44 |
Reporter | tjungcl | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Fixed in Version | 4.5.6 revision 40808 | ||||
Summary | 0002866: cachekey not configurable without extending every existing view | ||||
Description | if you modify the shop with a module that uses more cache-relevant parameters that those that already exist now, it is very hard to extend the ViewId without overwriting oxubase.php. (To do so, you would have to extends every frontend view.) So the getViewId function should include a user configurable logic (e.g. by calling a function from functions.php) | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
suggested realization: the getViewId function in oxubase.php could end [...] if (function_exists("extendViewId")) $this->_sViewId .= extendViewId(); return $this->_sViewId; } Now every module can easily extend the view id by defining extendViewId in the user functions, e.g.: function extendViewId(){ $oDb = getdb(); $sUserID = $oDb->quote(oxSession::getVar( 'usr' )); $aRow = $oDb->getRow("select something from oxuser where oxid = $sUserID"); return "|" . $aRow[0]; } |
|
@developers: check from source code side if such issue exist and if offered solution can be useful |
|
For adding custom ViewId text for all views, create function "customGetViewId" in modules/functions.php file. |