So far, I have only used memcache to cache data (usually the output of an SQL query). Now, I am required to cache output HTML for a few pages of my dynamic site. I will need these pages to be cached for 7 days (even if there is a data change). Is it possible to do it using Memcached ? Are thery any other better alternatives for output caching ?
Asked
Active
Viewed 651 times
0
-
Define 'required', please. To know a 'better alternative' one have to understand the goal, you know – Your Common Sense Jan 18 '13 at 11:21
1 Answers
1
You can do this with memcache, but it isn't the best method. Some problems are that memcache isn't build for bigger values, it works best with smaller contents. THen you have the problem of it throwing out your values if it needs the space. This could be because it is full, but also because there is no space (slab) for contents of this particular size anymore.
For something like this I'd suggest you take a look at a caching-solution like varnish

Nanne
- 64,065
- 16
- 119
- 163
-
Looked at Varnish ! Seems like the solution to my situation. Thanks @Nanne ! – gentrobot Jan 22 '13 at 04:36