Skip to content

Commit

Permalink
change cache files, add gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsukarenai committed Feb 19, 2014
1 parent 6b47221 commit db72291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ autoblogs/*
docs/*
!docs/docs.txt
robots.txt
.idea
.idea
cache_*
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function svg_status($fill, $text, $back)
<?php } ?>
</section>
<?php }
$fichierCache = 'docs.cache';
$fichierCache = 'cache_docs';
// si la page n'existe pas dans le cache ou si elle a expiré (durée paramétrable)
// on lance la génération de la page et on la stoke dans un fichier
if (@filemtime($fichierCache)<time()-(DOCS_CACHE_DURATION)) {
Expand Down Expand Up @@ -941,7 +941,7 @@ function svg_status($fill, $text, $back)
</nav>

<?php
$fichierCache = 'autoblogs.cache';
$fichierCache = 'cache_autoblogs';
// si la page n'existe pas dans le cache ou si elle a expiré (durée paramétrable)
// on lance la génération de la page et on la stoke dans un fichier
if (@filemtime($fichierCache)<time()-(AUTOBLOGS_CACHE_DURATION)) {
Expand Down

0 comments on commit db72291

Please sign in to comment.