Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Terris 273 posts 715 karma points
    Feb 25, 2013 @ 15:22
    Richard Terris
    0

    Umbraco cache issue

    Not sure is this IS an Umbraco cache issue or something else but looking for some help:

    When users log in to the site, I'm checking a status field in the db (custom table not Umbraco table).

    Depending on the status the user will be directed to 1 of 2 pages.

    When I create a new user in Umbraco, I check the table and the status is correctly set to 0 which is the default I have set when creating new users, so that field can never be null, only ever 1 or 0

    When I log in on the front end as that user, it's directing to the page where the user should go if the status was 1. To double check this I'm also passing the status in querystring and I can see in the querystring the status is 1 but in the table it is definitely 0.

    This is all handled in a user control, and the only thing I'm doing as testing is recreating a new user with the same username. So I delete the user from db and then create a new user with that username in Umbraco. 

    It's definitely a cache issue somewhere but I've unchecked the cache by page option in the macro for the user control.

    Any suggestions would be a big help.

  • Richard Terris 273 posts 715 karma points
    Feb 25, 2013 @ 15:34
    Richard Terris
    100

    School boy error - wasn't checking the correct property and therefore getting back the first user in the table

    Sorry guys!

Please Sign in or register to post replies

Write your reply to:

Draft