Commit Graph

14 Commits

Author SHA1 Message Date
Baris Usakli
d3c6cba33f closes #7060 2018-12-05 11:22:44 -05:00
Barış Soner Uşaklı
a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
2018-12-01 17:15:38 -05:00
Barış Soner Uşaklı
29e9310aa5 dont crash for undefined categories 2018-11-29 07:55:56 -05:00
Barış Soner Uşaklı
00a066985a cache categories:cid and cid:<cid>:children
these rarely change, no need to go to db for them
2018-11-27 19:38:28 -05:00
Barış Soner Uşaklı
59eeff8f0f closes #7011 2018-11-27 11:01:46 -05:00
Barış Soner Uşaklı
53ad2bbd6e Categories optimize (#6999)
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
2018-11-25 19:08:38 -05:00
Barış Soner Uşaklı
d5af39ca5d make 1 call for parentCids 2018-11-22 18:21:43 -05:00
Barış Soner Uşaklı
eba1a405d2 load category parents and childrens in one call
add more missing guest/spider checks
2018-11-22 10:53:44 -05:00
Baris Usakli
3425370adb dont use indexOf in map 2018-11-10 11:24:10 -05:00
Baris Usakli
968be7d8de make lint happy 2018-11-06 13:35:55 -05:00
Baris Usakli
3c611d85ed closes #6912
- on category setParent dialog do not show children of current category
- break recursion if category parentCid is equal to child cid to prevent
infinite loop
- dont allow setting the parentCid of a category to one of it's children
2018-11-06 13:34:29 -05:00
Baris Usakli
12f3f56b01 change to .exists 2018-10-26 14:31:38 -04:00
Barış Soner Uşaklı
44a957faca remove more parseints 2018-10-23 22:28:37 -04:00
Baris Usakli
138154a71c move modules 2018-10-23 15:03:32 -04:00