View Issue Details

IDProjectCategoryView StatusLast Update
0001448OXID eShop (all versions)4.08. Cachepublic2012-12-10 13:38
Reportersmonkey Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001448: Related cache is not reset when article goes offline because low stock in CE and PE
DescriptionIn CE or PE:
- set an article to oxstockflag=2 and oxstock=0
- view the articles category
- the article still counted for product summary and pagination.

Reason:
when article goes Offline because low stock, the related cache is not reset (so counter and paging remains the same).
In such case related cache should be reset and new one created (on next demand).
Additional InformationBug is valid on CE and PE only.
In EE it works well (here cache is reset directly after article goes offline).
TagsCache, Stock
Attached Files
oxstockflagbug.jpg (195,149 bytes)   
oxstockflagbug.jpg (195,149 bytes)   
Theme
BrowserAll
PHP Version
Database Version

Activities

smonkey

2009-11-05 11:47

reporter   ~0002010

manually clearing the tmp/ (DB cache?) will fix the problem for the most part

product counter is correct and number of pages are correct, but it's still possible to call the additional pages (in screenshot example: Geschenke/Wohnen/Uhren/6/) without get a 404

dainius.bigelis

2009-11-05 15:36

reporter   ~0002012

Last edited: 2009-11-05 15:36

The bug is:
- when article goes Offline because low stock, the related cache should be reset (then counter and paging will be REcalculated also). In this case cached Category page should be reseted and new one created (on next demand).
Bug is valid on CE and PE, and works well in EE (here cache is reset directly after article goes offline).
Will add more details to description.

rimvydas_paskevicius

2009-11-17 16:41

reporter   ~0002091

Added additional checking to oxarticle class method onCange() if articles goes offline because of empty stock. I yes, article counts are reseted in cache (only for version PE, EE works well).