Comments (8)
Merged and v1.1.0 released to plugin repo 🍾
from wordpress-markdown-git.
Yeah and there you got me.. I should set up smth like a donation link for us before slinging around things like that 😉 Thanks for the offer and the link. I'll dig in when I find the time.
from wordpress-markdown-git.
Thanks so much for the update @nilsnolde !! Really appreciate all your effort on this super handy plugin 👍
from wordpress-markdown-git.
Update: Gitlab doesn't send a last-modified
header 🙄 or anything related. So maybe the only option here would be to ask for the last commit and take the date out of there. A tiny little bit slower than for other providers, but still okish..
from wordpress-markdown-git.
Hi @nilsnolde , thanks again for your help.
About the caching, checking the document edits sounds like a great idea. Although as an intermediate step, would this simpler approach be possible?
- When a page is requested, save the cache and store the timestamp.
- Then when another view is requested, based on an "expiry time", either display the cache is displayed if its still "fresh", or its renewed if the timestamp is expired.
- The expiry time could be minutes or hours depending on the config json file.
Maybe this is something you're already doing.
Thanks!!
from wordpress-markdown-git.
Not even that much simpler I guess. Requesting a HEAD is not the more complicated thing to do IMO.
I think most of the work is researching how to best cache in WP, i.e. which directory to put them in or how (if) to flag that as cache, so it survives plugin & WP updates. Granted, that's not more than an hour. The rest is pretty straight-forward. I'd expect a day for this approx.
I'll take a look into this in a while, 1-2 months max. I don't consider it critical for most blogs. Can of course be sponsored money-wise, then I'd find time quicker;)
from wordpress-markdown-git.
Thanks @nilsnolde, sure I'd be happy to pitch in $$. Do you have a donation link or anything?
btw, I found a wordpress plugin that had a caching system that seemed to work well, it might be worth looking into for ideas.
https://github.com/anytizer/hosted-content-importer.wp
from wordpress-markdown-git.
Quick shoutout @eblabs: #19 and @danilopinotti will implement static caching, merging and releasing soon. Wanted to let you know already, I'm kinda excited about this 😄 And sorry for the long wait
from wordpress-markdown-git.
Related Issues (20)
- 404 - Not Found for valid Jupyter notebook URLs HOT 13
- GitLab rate limited HOT 3
- Enable dynamic caching
- plugin does not respect dark mode HOT 4
- Small Typo on Readme. :)
- [feature request] support for gitlab wiki pages HOT 12
- WP plugin taking too long HOT 5
- Support for checkbox [x] HOT 3
- Doesn't update ipynb when git is updated. HOT 7
- [Feature request] Skip a given number of lines HOT 2
- Anchor links to headers don't work HOT 1
- Gitlab local API HOT 3
- since update: error message that I reached API call limit HOT 2
- Styles are not enqueued HOT 1
- installation on PHP8.0 HOT 3
- Accessibility with Gitlab markdown flavor HOT 2
- Include a link to settings in plugin page
- Removing cache_ttl does not flush cache HOT 3
- Inline codeblocks not working correctly? HOT 2
- Deprecate this plugin HOT 5
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 wordpress-markdown-git.