diff --git a/qsgen2 b/qsgen2 index b068942..83f5710 100755 --- a/qsgen2 +++ b/qsgen2 @@ -263,10 +263,12 @@ function _blog_cache() { # PAGES CACHE # Returns the array pages_array() function _pages_cache() { - local debug=false + local debug=true # Create an associative array for the pages cache typeset -A pages_cache + _list_pages + # Load the existing pages cache if [[ -f $pages_cache_file ]]; then while IFS=':' read -r name hash; do @@ -278,8 +280,6 @@ function _pages_cache() { # Initialize the array for storing pages files to process pages_array=() - _list_pages - # Process pages files for file in ${pages_file_array[@]}; do # Compute the current blog file hash