Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Theme Changing Bug

by vagnerr (Prior)
on Feb 21, 2002 at 09:47 UTC ( [id://146728]=note: print w/replies, xml ) Need Help??


in reply to Theme Changing Bug

I noticed that yesterday, Its kind of a time delay thing when you submit your changes the script executes and loads in your options to use for display and displays with them, it then stores your new settings in the DB.
If the settings were to be saved first then the script act on them you would see them imediatly but I guess it doesn't.
Its hard to say how easy it would be to fix, and its probably not a high priority seeing as generaly you won't be changing your theme that often. Personaly what I would like to see is some kind of preview page so you can just look at them all and pick the one you like best.

---If it doesn't fit use a bigger hammer

Replies are listed 'Best First'.
Re: Re: Theme Changing Bug
by chromatic (Archbishop) on Feb 21, 2002 at 20:08 UTC

    To save user preferences, the user must be authenticated. As the current theme is a user setting, it's loaded when the user object is created in the system. Submitted data is only processed after user permissions are checked.

    The only solution I see is to defer loading user preferences until absolutely necessary. As this involves another database hit, it doesn't seem worth slowing things down for such an uncommon operation. (If there's a better solution, I'm all ears.)

Re: Re: Theme Changing Bug
by Coplan (Pilgrim) on Feb 21, 2002 at 17:25 UTC
    I don't know why it happens, but I noticed the same behavior on my own website project (SceneSpot.org). I don't think we ever figured out what caused it, but it's apparently a minor cache issue. Our simple solution was to create an intermedite page. When you hit submit, it would load a page that would say "Storing Preferences", and then refresh the prefs page. It didn't seem to be a time issue. It was more like a page-load-count issue.

    Again, I don't know exactly why it happened. My buddy figured it out though, I think. But we still have the intermediate page...so I'm really not sure. I think he added a "Pragma: no cache" to our headers in Apache...that might have something to do with it.

    --Coplan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://146728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found