Hi,

I would like to add caching feature to my restful webservices. I am
planning to use the default caching mechanism provided by the symfony.
For that I have changed the cache.yml as given below,

  enabled: on
  with_layout: true
  lifetime: 900
  client_lifetime: 0

And set cache:                  on for prod/test/dev the settings.yml
also.

The caching is working fine. But one issue is, it is caching the data
for separately for different users. For example a routing entry for my
api is

/:servicetype/:ver/:lang/:usertoken/newscategories.:sf_format

The URL for accessing the API is

http://10.1.12.123/hysa/restful.php/news/1/en/user1/newscategories

http://10.1.12.123/hysa/restful.php/news/1/en/user2/newscategories

http://10.1.12.123/hysa/restful.php/news/1/en/user3/newscategories

That is the above url is accessing same content but different users.
But symfony create different caches for each users. But I am aiming to
implement single cache for same content. Is it possible? Hope I
explained my doubt clearly.

Please advise me to implement this scenario.

Regards
Shihab

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to