View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007793 | OXID eShop B2B Edition | B2B edition - sub | public | 2025-05-02 15:28 | 2025-05-16 07:16 |
Reporter | michael_keiluweit | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 4.1.0 | ||||
Summary | 0007793: The admin login process causes the dynamic content cache to be flushed. | ||||
Description | During the login workflow for the administration area, the user model is saved, which causes the dynamic content cache to be flushed. This behavior is fixed since 5.1, but only because the content of the basket is checked during the user login workflow. Since the user's B2B basket functionality isn't used in the administration area and a malladmin user can't be a B2B user, it would be better if the basket check mechanism were spared completely. | ||||
Steps To Reproduce | 1. Install EE 6.5 2. Install B2B 4.1 3. Activate the dynamic content cache 4. Open a few views in the frontend 5. Check the directory tmp/ for existing *.cache files 6. Log in to the administration area 7. Check the directory tmp/ for existing *.cache files. They will be gone | ||||
Additional Information | OxidEsales\EshopEnterprise\Core\Cache\DynamicContent\ContentCache->reset (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Cache/DynamicContent/ContentCache.php:359) OxidEsales\EshopEnterprise\Core\Model\BaseModel->_resetCache (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Model/BaseModel.php:477) OxidEsales\EshopEnterprise\Core\Model\BaseModel->onChange (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Model/BaseModel.php:336) OxidEsales\EshopCommunity\Core\Model\BaseModel->save (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Model/BaseModel.php:895) OxidEsales\EshopCommunity\Application\Model\NewsSubscribed->updateSubscription (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Model/NewsSubscribed.php:242) OxidEsales\EshopCommunity\Application\Model\User->_update (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Model/User.php:1822) OxidEsales\EshopCommunity\Core\Model\BaseModel->save (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Model/BaseModel.php:886) OxidEsales\EshopCommunity\Application\Model\User->save (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Model/User.php:549) OxidEsales\B2BModule\Basket\Model\User->saveB2bBasketIdForUser (/var/www/oxideshop/source/modules/b2b/Basket/Model/User.php:45) OxidEsales\B2BModule\Basket\Service\EditService->onBasketChange (/var/www/oxideshop/source/modules/b2b/Basket/Service/EditService.php:88) OxidEsales\B2BModule\Basket\Model\User->login (/var/www/oxideshop/source/modules/b2b/Basket/Model/User.php:33) OxidEsales\B2BModule\ApprovalProcedure\Model\User->login (/var/www/oxideshop/source/modules/b2b/ApprovalProcedure/Model/User.php:27) OxidEsales\EshopCommunity\Application\Controller\Admin\LoginController->checklogin (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/Admin/LoginController.php:111) OxidEsales\EshopCommunity\Core\Controller\BaseController->executeFunction (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php:534) OxidEsales\EshopEnterprise\Core\Controller\BaseController->executeFunction (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ee/Core/Controller/BaseController.php:64) OxidEsales\EshopCommunity\Core\ShopControl->executeAction (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php:347) OxidEsales\EshopCommunity\Core\ShopControl->_process (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php:280) OxidEsales\EshopCommunity\Core\ShopControl->start (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php:142) OxidEsales\EshopCommunity\Core\Oxid::run (/var/www/oxideshop/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php:27) require_once (/var/www/oxideshop/source/index.php:16) {main} (/var/www/oxideshop/source/admin/index.php:12) | ||||
Tags | No tags attached. | ||||
|
In the current administrator area's login workflow, when the user model is saved, an accidental flush of dynamic content cache is triggered. This has been avoided from version 5.1 onwards, where the content of the basket is checked at the time of login, however, this check is unnecessary for the administrator area since malladmin users are not B2B users and do not have a B2B Basket. Therefore the basket check should not occur for administrators to avoid needless processing and maintain cache optimization. |