Jump to content

Edit History

Mercader Virtual

Mercader Virtual

Just clear cache.
Save this script in a .sh file on the root prestashop folder. Then run the .sh file like:
sh clearcache.sh
 

#!/bin/bash
base_dir='./'

# Clear class index in case any override changed (usually not needed, that's why line is commented out).
#rm ${base_dir}/cache/class_index.php


declare -a cache_dirs=("cache/smarty/compile" "cache/smarty/cache" "cache/cachefs" "img/tmp" "themes/*/cache" "var/cache")

# Clear all cache folder, ignoring 'index.php'
for dir in "${cache_dirs[@]}"
do
    echo Cleaning ${base_dir}/${dir}...
    find ${base_dir}/${dir} -type f ! -name index.php -delete
done

 

Mercader Virtual

Mercader Virtual

Just clear cache.
Save this script in a .sh file on the root prestashop folder. Then run the .sh file like:
sh clearcache.sh
 

#!/bin/bash
base_dir='./'

# Clear class index in case any override changed
#rm ${base_dir}/cache/class_index.php


declare -a cache_dirs=("cache/smarty/compile" "cache/smarty/cache" "cache/cachefs" "img/tmp" "themes/*/cache" "var/cache")

# Clear all cache folder, ignoring 'index.php'
for dir in "${cache_dirs[@]}"
do
    echo Cleaning ${base_dir}/${dir}...
    find ${base_dir}/${dir} -type f ! -name index.php -delete
done

 

Mercader Virtual

Mercader Virtual

Just clear cache:
Run this script:
 

#!/bin/bash
base_dir='./'

# Clear class index in case any override changed
#rm ${base_dir}/cache/class_index.php


declare -a cache_dirs=("cache/smarty/compile" "cache/smarty/cache" "cache/cachefs" "img/tmp" "themes/*/cache" "var/cache")

# Clear all cache folder, ignoring 'index.php'
for dir in "${cache_dirs[@]}"
do
    echo Cleaning ${base_dir}/${dir}...
    find ${base_dir}/${dir} -type f ! -name index.php -delete
done

 

×
×
  • Create New...