Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

Best quick cache solution for vanilla?

TiGRTiGR
I've fixed OpenId plugin, and it required using some server-side storage for really short amount of time - just between 2 pages. What would be best solution for this?

Gdn::Cache() seems to be not working, Gdn::Session->SetAttribute() works only at runtime, Gdn::Session->SetPreference() works for registered users only (while this is at registration process).

$_SESSION is not being used in vanilla at all. Is it ok to start php session and use it?
Tagged:

Best Answer

  • LincLinc Admin
    Answer ✓
    There is now $Session->Stash() for popping stored variables in and out of the session array. I'm not sure where it got added, but it's been in all the .18 betas.

Answers

  • LincLinc Admin
    Answer ✓
    There is now $Session->Stash() for popping stored variables in and out of the session array. I'm not sure where it got added, but it's been in all the .18 betas.
  • Gdn::Cache() seems to be not working
    Maybe a bug? Needs to be fixed for new beta release or Release Candidate?

    There was an error rendering this rich post.

  • ToddTodd Vanilla Staff
    Gdn::Cache() is meant for a hook for memcached. If you don't have it configured on your server then you won't get anything from Gdn::Cache().
Sign In or Register to comment.