Skip to content

Commit

Permalink
stop removing empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Dec 31, 2009
1 parent 300a6d3 commit 0e1fa79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/blog/blog_app_model.php
Expand Up @@ -53,6 +53,10 @@ private function __clearCache()

foreach( $files[1] as $file )
{
if ( $file == 'empty' )
{
continue;
}
unlink( CACHE.'blog'.DS.$file );
}

Expand Down
5 changes: 5 additions & 0 deletions plugins/core/models/comment.php
Expand Up @@ -116,6 +116,11 @@ private function __clearCache()

foreach( $files[1] as $file )
{
if ( $file == 'empty' )
{
continue;
}

if ( substr( $file, 0, 15 ) == 'comments_count_' )
{
unlink( CACHE.'blog'.DS.$file );
Expand Down

0 comments on commit 0e1fa79

Please sign in to comment.