Project

General

Profile

Actions

Bug #5960

closed

isAuthorized is not unique enough when using uniqid

Added by krileon almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
12 May 2016
Due date:
% Done:

100%

Estimated time:

Description

When using dummy privacy rows uniqid is used to cache the results, but it's not unique enough. Generate a more unique id until "asset" column can be implemented, which will be improve the caching (cached by user id and asset).

https://www.joomlapolis.com/forum/153-professional-member-support/233670-weird-behavior-of-cb-privacy

Actions #1

Updated by krileon almost 8 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Doesn't need to be unique. Just needs to be more specific. It should construct as follows.

OWNER_ID.TYPE.SUBTYPE.ITEM.RULE

This will ensure it's cached based off the dummy rows data properly. Caching is also already 2-stage. First cache by myId then by the privacy row. Examples as follows.

62.profile.tab.4.99
43.profile.1
81.profile.field.28.99

Actions #2

Updated by krileon almost 7 years ago

  • Target version changed from 739 to 5.0.0
Actions #3

Updated by krileon almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF