Cache in symfony2

I have one table configuration_variables(name,value). It contains configuration variables for my symfony-application such as reset-password-link-expiration-time. Since these configuration variables change rarely, I want to cache it in a temporary folder (app/cache is the right place?).

How can I do it in symfony2?

I tried How to cache in Symfony 2?. But I think it is not suitable to my reqiuirement.


You could create a cache warmer to cache the configuration in a file. You could use to export the data to the file, or serialize.

Then, create a service that uses the data from the file.

Need Your Help

How to set a proper layout for GUI in java

java swing user-interface layout jlabel

I want to create a gui, where the window is split in half, one side has the inputs (jlabels and text fields), the other side has the output printed out. Before I add any listeners and what not I ra...

Differences between address-of and ref operators

f# struct operators byref

In my code I'm passing around some structures by reference, declaring them mutable and using the & symbol. The problem is that in some place the fields are corrupted (happens only in release mo...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.