Skip to content

YDB cache array not updated after new link creation #3772

@joehmphack

Description

@joehmphack

Code of Conduct

Submission validity

  • This is not a personal support request, that should be posted on discussions community.
  • I checked current issues and this request isn't a duplicate of an existing issue, opened or closed.

Self troubleshooting

Version

1.9.2

Description

In my bootstrap setup, I use yourls_get_keyword_infos() to first check if a keyword exists and then, if the keyword doesn't exist, I use yourls_add_new_link() to insert the link.

My use of yourls_get_keyword_infos() before creation results in "FALSE" going in the YDB cache array for the keyword. Then, since yourls_add_new_link() does not update the YDB cache array after creation, the admin interface incorrectly reports that the newly created keyword is not in the database.

After the creation of a new link, the entry for the keyword in the YDB cache array should be removed so it can properly be cached on the next lookup.

Expectation

No response

Reproduction steps

No response

Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions