Comments (4)
Great idea—fragment caching would make it much more powerful—I can't quite think of a simple way for it to work though. At the moment the extension intercepts the page request and either serves or caches the entire page.
For fragment caching to work we'd have to have some way of generating the fragments and then insert them into the cached page, but we obviously need to do that without generating the entire page again.
One solution might be to add a caching=true
parameter into the page generation process and then use that to only generate the bits that change. That way we could pull them out and insert them into the whole cached page.
Do you have any other suggestions?
from cachelite.
Talking with Rowan he points out that most of the time in page generation is the XML build so the approach outlined above probably wouldn't save enough time to be useful :/
from cachelite.
Hrm yes, fair point. Of course, since at the point of rendering the page the DSs and XML have already been created and execute. Duh!
In which case the best option for fragment caching remains at the DS caching level. We're close to having something that can be pushed to Alistair as a core modification on this front, hopefully in the next 4–6 weeks.
On another note, I just realised I use this issue tracker as a soundboard/forum. Do you think it should be encouraged, to keep the forum cleaner? I wonder if the Extensions threads should remain as an "update" area, and the Issues on Github for bugs/suggestions etc?
from cachelite.
It's great that you're making some decent progress on the DS caching. I'll be really interested to see how it's implemented. The more speed the better :)
I think it's a good idea to have a canonical place for extension discussion. If the code is hosted on GitHub then the issues feature seems good way of keeping on top of requests, bugs, etc.
from cachelite.
Related Issues (20)
- Possible "duplicates" errors HOT 7
- 2.4 woes HOT 12
- 2.4/2.5 Compatibility HOT 4
- Cachelite with one page HOT 20
- CacheLite prevents viewing ?debug HOT 24
- Delete the 'gzip' branch HOT 1
- Can't flush cache HOT 14
- Doesn't include changes performed by the "HTML5 Doctype" extension. HOT 6
- Cachelite problem with frontend HOT 20
- Unstyled snapshot HOT 8
- Symphony Warning: DOMDocument::loadXML(): AttValue: " or ' expected in Entity, line: 1 HOT 4
- Members extension with frontend CMS HOT 1
- Does not respect the protocol
- Cache Period doesn't work at all HOT 1
- Varchar(255) is not enough
- Update 1.3.3 -> 2.0.0 error Invalid default value for 'timestamp' HOT 7
- Cachelite doesnt work on the default page HOT 7
- Excluded url's not working 100% HOT 3
- Table: sym_cachelite_references is 250MB after some days is this normal? HOT 8
- Update Cache_Lite version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachelite.