How to use cache feature on my own site?
I want to know how to use cache feature on my own site?
The following is my code that try to use cache to save value into cache and get value from cache,but it looks always initialize a useless Gdn_Dirtycache Object in my code:
Gdn::Cache()->Store('mbqTestVar', serialize(array('v1', 'v2', 'v3')), array( Gdn_Cache::FEATURE_EXPIRY => 120 )); error_log(print_r(unserialize(Gdn::Cache()->Get('mbqTestVar')), true));
So I suppose I missed something or did something wrong in my code.
Anybody can help?