Hi,
I work on a webzine like site.
I'd like to cache 3 differents feeds one for the top 10 articles of
day, an other for week and at last for month.
To do that i created a "syndication" action.
Here is my routing.yml file:
top10day_rss:
url: /top10-du-jour
param: { module: accueil, action: syndication, since: day }
top10week_rss:
url: /top10-de-la-semaine
param: { module: accueil, action: syndication, since: week }
top10month_rss:
url: /top10-du-mois
param: { module: accueil, action: syndication, since: month }
And here my cache.yml file :
syndication:
enabled: on
lifetime: 3600
In action code i generate the feeds contents using sfFeedPlugin.
The problem is that only one cache file is generated called top10-du-
jour.cache
And it's used by the 3 differents feeds.
In "The Definitive Guide to symfony" - Chapter 12 - Caching i can
read :
Quote:
Now, every call to the user/show action with a different id argument
creates a new record in the cache. So the cache for this:
http://myapp.example.com/user/show/id/12
will be different than the cache for this:
http://myapp.example.com/user/show/id/25
Why it don't work in my case ?
Must i replace my routing system with something like :
http://myapp.example.com/top10/day
http://myapp.example.com/top10/week
http://myapp.example.com/top10/month
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---