Giter VIP home page Giter VIP logo

Comments (6)

fluffy-critter avatar fluffy-critter commented on June 14, 2024

I use a cron job that runs curl against update-quiet.php. You can also just run update-quiet.php directly (also from cron). There's no reason to pass in a specific feed parameter unless you only want to update a single subscribed feed (but why would you want that?).

from feed-on-feeds.

fluffy-critter avatar fluffy-critter commented on June 14, 2024

Incidentally, I've started putting together an actual site (to hopefully replace the old feedonfeeds.com) which is currently at http://git.beesbuzz.biz/?p=FeedOnFeeds.git;a=summary - it's biased towards my own fork, of course (and I tend to be a bit more experimentally-biased in what I accept and change), although RomanSixty and I pull from each other fairly often.

from feed-on-feeds.

misel228 avatar misel228 commented on June 14, 2024

The original coder says to use something like this in cron:

/usr/bin/wget --output-document=/dev/null --output-file=/dev/null --http-user=feeds --http-passwd=myf33ds http://example.com/update-quiet.php

It should be possible to call the script directly from command line but I haven't tested it yet.

from feed-on-feeds.

RomanSixty avatar RomanSixty commented on June 14, 2024

It works from the command line or directly via cron by invoking update_quiet.php using a PHP interpreter (usually /usr/bin/php).

from feed-on-feeds.

fluffy-critter avatar fluffy-critter commented on June 14, 2024

There are actually good reasons to do it as a round-trip through curl/wget instead of from the command line:

  • You can be sure that you're using the same PHP version (including modules etc.) as what's in use for the site
  • If your hosting has execution time limits you can be certain that you're abiding by those (this is especially important on shared hosting providers, which may boot you off for "abuse" if you take an endrun around those)
  • It can take advantage of whatever fastcgi or bytecode-caching things and database connection pooling on the webserver
  • You can decouple the update cron job from the server it's actually running on; again, very useful for shared hosting situations, and other scenarios where you don't have user access to cron from the webserver

So basically I would ONLY recommend using the curl/wget approach, and NOT running it through a commandline interpreter.

from feed-on-feeds.

RomanSixty avatar RomanSixty commented on June 14, 2024

I'm running FOF on my own servers so I didn't put much thought into why one should use wget instead of a simple shell call to run updates, but those are some good points.

from feed-on-feeds.

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.