Quote:
Originally Posted by KirbyDE
Right. But how would the Classes determine if an item has to be cached if it's not in $specialtemplates?
That's the important question 
|
Hope it doesnt come across as arrogant - but it doesnt matter. (From what I see from something like the Memcached class, all datastore items that have ever been "queried" are added to the Memcached cache, but a single query happens if it doesnt exist, but only the first time).
From what I see, the $specialtemplates variable is only useful if you want to save queries to the database while using the traditional datastore method.
If the item doesnt exist in the memcached/filestore storage, it will be queried. But only once. After it has been queried, it will be added to the relevant storage.
The biggest issue I see is that what happens when the datastore item is updated in the database. I do not see how it will update the item in the other storage methods - I
suspect that it gets updated when you call the build_* functions. I havent looked at that area because I use the database method