Issue description
Some resources rarley change. A subject page is generated dynamically every time although it does not change so frequently. Same goes for a feed. It is necessary to create a small caching mechanism in PHP, which avoids the dynamic generation of pages.
Created: 2009-07-10 09:59:59, Robert Cerny Modified: 2009-08-21 08:59:06, Robert Cerny
Link,
No reifier
Comment
[http://pear.php.net/package/Cache_Lite, Cache Lite] makes a good impression. After some central coding i was possible to avoid recreating large pages. The system would affect the resource definition and would cache entries depending on the query string.
Additionally it would be necessary to make the system sensitive to the language the resource is delivered and also to the host, since the base is set in every page.
Created: 2009-07-11 08:34:04, Robert Cerny Modified: 2009-07-11 08:34:04, Robert Cerny
Link,
No reifier
The general idea is to keep the cache simple for now, because it is very difficult to decide which update affects which resource. The simple principle for the moment is: the whole cache of a store is emptied on any POST, PUT, or DELETE to the store. Very simple.
Created: 2009-07-13 14:56:35, Robert Cerny Modified: 2009-07-14 16:01:28, Robert Cerny
Link,
No reifier
The current solution system has the following features:
* a store cache can be easily put in effect for a class of resources
* a store cache can be made sensitive to varying representations of one resource
* a store cache is emptied when a PUT, POST or DELETE to the store is received
* a store cache can be cleared manually via the command line very easily by removing the directory below tmp/cache_lite
* a store cache can be reset via the browser by calling admin/.clear-cache
Created: 2009-07-14 16:01:28, Robert Cerny Modified: 2009-07-14 16:01:48, Robert Cerny
Link,
No reifier
This simple solution yields quite impressive results. With an active store cache 50 identical requests take 4.6 seconds. Without the cache they take 82 seconds!
Created: 2009-07-14 17:40:27, Robert Cerny Modified: 2009-07-14 17:40:27, Robert Cerny
Link,
No reifier
|
Planned for version
Topincs 3.3.0
Created: 2009-07-10 09:59:59, Robert Cerny Modified: 2009-07-10 09:59:59, Robert Cerny
Link,
No reifier
Caused
Configuration of the base dir of the cache (Enhancement)
Created: 2009-07-24 11:23:20, Robert Cerny Modified: 2009-07-24 11:23:20, Robert Cerny
Link,
No reifier
Cache does not vary by method (Bug)
Created: 2009-07-24 12:54:50, Robert Cerny Modified: 2009-07-24 12:54:50, Robert Cerny
Link,
No reifier
Work sessions5
Created: 2009-07-11 07:05:21, Robert Cerny Modified: 2009-07-11 07:05:21, Robert Cerny
Link,
No reifier
Created: 2009-07-13 12:16:32, Robert Cerny Modified: 2009-07-13 12:16:32, Robert Cerny
Link,
No reifier
Created: 2009-07-13 17:11:57, Robert Cerny Modified: 2009-07-13 17:11:57, Robert Cerny
Link,
No reifier
Created: 2009-07-14 08:09:28, Robert Cerny Modified: 2009-07-14 08:09:28, Robert Cerny
Link,
No reifier
Created: 2009-07-14 13:41:42, Robert Cerny Modified: 2009-07-14 13:41:42, Robert Cerny
Link,
No reifier
Affects
Topincs Server (Component)
Created: 2009-07-10 09:59:58, Robert Cerny Modified: 2009-07-10 09:59:58, Robert Cerny
Link,
No reifier
Reporting date2009-07-10+02:00 Created: 2009-07-10 09:59:59, Robert Cerny Modified: 2009-07-10 09:59:59, Robert Cerny
Link,
No reifier
Reported by
Robert Cerny
Created: 2009-07-10 09:59:58, Robert Cerny Modified: 2009-07-10 09:59:58, Robert Cerny
Link,
No reifier
Resolving date2009-07-14+02:00 Created: 2009-07-14 16:02:45, Robert Cerny Modified: 2009-07-14 16:02:45, Robert Cerny
Link,
No reifier
Resolved by
Robert Cerny
Created: 2009-07-14 16:02:45, Robert Cerny Modified: 2009-07-14 16:02:45, Robert Cerny
Link,
No reifier
Resolved in version
Topincs 3.3.0
Created: 2009-07-14 16:02:45, Robert Cerny Modified: 2009-07-14 16:02:45, Robert Cerny
Link,
No reifier
|