Git Product home page Git Product logo

Comments (8)

nilsnolde avatar nilsnolde commented on May 23, 2024 2

Merged and v1.1.0 released to plugin repo 🍾

from wordpress-markdown-git.

nilsnolde avatar nilsnolde commented on May 23, 2024 1

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.

eblabs avatar eblabs commented on May 23, 2024 1

Thanks so much for the update @nilsnolde !! Really appreciate all your effort on this super handy plugin 👍

from wordpress-markdown-git.

nilsnolde avatar nilsnolde commented on May 23, 2024

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.

eblabs avatar eblabs commented on May 23, 2024

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.

nilsnolde avatar nilsnolde commented on May 23, 2024

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.

eblabs avatar eblabs commented on May 23, 2024

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.

nilsnolde avatar nilsnolde commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.