That’s why i suggested adding an option of excluding/including specific elements from been cleared from the cache by selection of a cache-policy or CCL(Cache-Clearance-List) or something. Or maybe use a batcher/cache manager/browser to be more specific,
The idea looks nice at a first glance...
but if all you change is a pagetitle of one resource, yet it is mentioned using Wayfinder (or getResources, or ...) on any of the other pages... you’ll be facing old data.
You’re forgetting also the server load and the CPU usage raising to high levels.
I think that if you have a lot of resources, you’ll generally also have a lot of people viewing them (hopefully) and on the first view it will be cached again
- leaving only the first person viewing a resource wait a little longer
(but still, depending on the content, snippets and plugins of course) not amazingly long.
A list of including specific Elements (or Resources) is already a problem. If you have thousands of them, how do you present that in a usable way? And yes, I am not even going to think about the suggestion regarding tracking relationships between Resources/Elements because I need to use my brain today for other things—I truly believe that would be a fool’s errand.
That’s why i suggested adding an option of excluding/including specific elements from been cleared from the cache by selection of a cache-policy or CCL(Cache-Clearance-List) or something. Or maybe use a batcher/cache manager/browser to be more specific,
That way you can clear cache to associated resources/elements as well (maybe it’s even a good idea to implant a system to keep track of the cache-links between the different resources/elements).
Maybe it sound’s like an headache, but i think it’s important to think about that.
There’s always a tradeoff between serving things as fast as possible and dynamically presenting changing content based on contextual information about the client doing the browsing (time, browser engine, language, identity, etc.). We can certainly optimize specific things, but I don’t really think this argument has much weight in the custom cache clearing debate. There are simply too many factors, and unless you are serving 1000’s of requests per second, I would make sure everything, even when not cached was running as efficiently as possible. There are also times when performance requirements would likely exclude the use of any kind of generic content management system, or even dynamically-served pages at all (i.e. static files with changes being manually published).
You’re forgetting also the server load and the CPU usage raising to high levels.
But as concerned to the users, This first user/(customer?) that is waiting a little bit longer might leave the site because of the slow load.
So this is a major UX node for users, the speed issue.
here’s an article about this issue:
http://trentwalton.com/2010/08/24/dont-make-me-wait/
You probably right about the bond-tracking, it really can be a mind blower and some sort of chasing your tail in large scale sites (or those with enormous amount of elements).
Quote from: gOmp at Jan 08, 2011, 01:23 PMA list of including specific Elements (or Resources) is already a problem. If you have thousands of them, how do you present that in a usable way? And yes, I am not even going to think about the suggestion regarding tracking relationships between Resources/Elements because I need to use my brain today for other things—I truly believe that would be a fool’s errand.
..excluding/including specific elements from been cleared from the cache by selection of a cache-policy or CCL(Cache-Clearance-List) Or maybe use a batcher/cache manager/browser to be more specific, That way you can clear cache to associated resources/elements as well (maybe it’s even a good idea to implant a system to keep track of the cache-links between the different resources/elements).
agreed.
Quote from: gOmp at Jan 08, 2011, 01:23 PM..the speed issue.There’s always a tradeoff between serving things as fast as possible and dynamically presenting changing content based on contextual information about the client doing the browsing (time, browser engine, language, identity, etc.).
We can certainly optimize specific things, but I don’t really think this argument has much weight in the custom cache clearing debate.
There are simply too many factors, and unless you are serving 1000’s of requests per second,
I would make sure everything, even when not cached was running as efficiently as possible. There are also times when performance requirements would likely exclude the use of any kind of generic content management system, or even dynamically-served pages at all (i.e. static files with changes being manually published).
at least for a particular ContextCan you clear the cache for only one context now? That would be really useful for multi-domain installs.