February 01, 2011
Mark Wielaard: New GPG key.
Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...
More »
February 01, 2011
Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!.
We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5.
This update contains the following security updates:
The IcedTea project provides a harness to build the source code from OpenJDK6 u...
More »
November/2024
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
| | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | | | |
|
|
Let's keep those cache entries for little bit longer
Have you got magnolia-4.3? Setup multiple sites? All right, you are all done. The only thing left is to observe the load on the server and how many requests you can serve. You might have noticed that after activating the content, load on the public is bit higher even though there is no increase in traffic.
Why? Simply because after activating the piece of content, cache on the public instance have been flushed. Well, so far this is actually nothing else but what you want. You activated new content and you indeed want to show world what is there and not the stale old stuff. Never the less, when using multiple sites, you might have also noticed that you are getting the hit also for the other sites then the one for which you activated the content. And in most cases, this is completely unnecessary since each site has own content and changes to one site do not affect the other.
So how to get out of this bind? If you dig bit into the way cache works (which you might do by reading older entries here and the official documentation), the obvious solution you will most likely come up with is to write a custom flush policy and when new content is activated, clear from the cache only those entries that belong to the same subtree as activated content. I've been there too. But imagine this - you've got say 10 sites each with approximately 500 pages and each page on average consisting of 15 resources. That gives you total of about ...
Date: March, 26 2010
Url: http://www.java.net/blog/rah003/archive/2010/03/24/flush-cache
Others News
|