mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-26 14:18:02 -05:00
Grosse amélioration des performances en utilisant le cache HTTP : - Implémentation de HTTP/1.1, c.a.d. If-Modified-Since, If-None-Match, If-Unmodified-Since, If-Match... avec la librairie http://alexandre.alapetite.fr/doc-alex/php-http-304/ - Support de HEAD (HTTP /1.0). - Préchargement de la page suivante (avec link next prefetch) dans le cas de pagination. - Et nouvelle possibilité de navigation pour les navigateurs qui supportent "next". - La date de dernier changement est pour l'instant primitive et correspond au dernier changement de la session PHP ou Configuration.array.php ou application.log ou touch.txt. - touch.txt est modifié a chaque requête UPDATE ou INSERT ou DELETE.
30 lines
856 B
PHP
Executable File
30 lines
856 B
PHP
Executable File
<?php
|
|
|
|
// Constantes de chemins
|
|
define ('PUBLIC_PATH', realpath (dirname (__FILE__) . '/public'));
|
|
define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib'));
|
|
define ('APP_PATH', realpath (PUBLIC_PATH . '/../app'));
|
|
define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log'));
|
|
define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache'));
|
|
|
|
$_GET['c'] = 'feed';
|
|
$_GET['a'] = 'actualize';
|
|
$_GET['force'] = true;
|
|
$_SERVER['HTTP_HOST'] = '';
|
|
|
|
set_include_path (get_include_path ()
|
|
. PATH_SEPARATOR
|
|
. LIB_PATH
|
|
. PATH_SEPARATOR
|
|
. LIB_PATH . '/minz'
|
|
. PATH_SEPARATOR
|
|
. APP_PATH);
|
|
|
|
require (APP_PATH . '/App_FrontController.php');
|
|
|
|
$front_controller = new App_FrontController ();
|
|
$front_controller->init ();
|
|
Session::_param('mail', true); // permet de se passer de la phase de connexion
|
|
$front_controller->run ();
|
|
touch(PUBLIC_PATH . '/data/touch.txt');
|